Hello there,
Running: Moodle 3.0.1+ (Build: 20160107), Redhat enterprise 6.6 64-bit, MySQL 5.5 and PHP 5.5.41
I was wondering if there is a way to roll back to a particular or previous branch via git. I believe there is but is not clear to me yet or wanted to confirm with more experienced individuals such as yourselves.
This is what I did:
[me@myserver moodle31]$ git reflog show
e8695a2 HEAD@{0}: HEAD@{6}: updating HEAD
9365405 HEAD@{1}: pull : Merge made by recursive.
908e9e7 HEAD@{2}: pull : Merge made by recursive.
2055b30 HEAD@{3}: pull : Merge made by recursive.
f84edd2 HEAD@{4}: pull : Merge made by recursive.
17848b8 HEAD@{5}: pull : Merge made by recursive.
7e6b733 HEAD@{6}: pull : Merge made by recursive.
e8695a2 HEAD@{7}: pull : Merge made by recursive.
fa8d72c HEAD@{8}: commit: merge devmoodle3 branch first time
6114fab HEAD@{9}: checkout: moving from master to MOODLE_30_STABLE
26653c8 HEAD@{10}: clone: from git://git.moodle.org/moodle.git
[me@myserver moodle31]$ git reset HEAD@{6}
However, when I load moodle, the page shows that the database will be updated. Was it because I tried to do a CLI command line upgrade but I did not say ":Y" though on the prompt.
Which brings me to my 2nd question. How do we roll back the database before upgrade actually starts in spite of the prompt.
[me@myserver moodle31]$ php /our/moodle31/path/admin/cli/upgrade.php
== Upgrading Moodle database from version 3.0.1+ (Build: 20151231) (2015111601.02) to 3.0.1+ (Build: 20160107) (2015111601.03) ==
Your Moodle files have been changed, and you are about to automatically upgrade your server to this version:
3.0.1+ (BUILD: 20160107) (2015111601.03)
Once you do this you can not go back again. Please note that this process can take a long time.
Are you sure you want to upgrade this server to this version?
type y (means yes) or n (means no)
:
Not sure how I can remove or eliminate that upgrading moodle warning before I can proceed.
Thanks