I am getting this error, when I trying to update facetoface from version 2012053002 to 2013010400.
This moodle version is 2.5.1+ ... Any help, how to solve this. Thank you.
Debug info:
Error code: cannotdowngrade
Stack trace:
-
line 235 of /lib/upgradelib.php: downgrade_exception thrown
-
line 726 of /mod/facetoface/db/upgrade.php: call to upgrade_mod_savepoint()
-
line 664 of /lib/upgradelib.php: call to xmldb_facetoface_upgrade()
-
line 381 of /lib/upgradelib.php: call to upgrade_plugins_modules()
-
line 1586 of /lib/upgradelib.php: call to upgrade_plugins()
-
line 387 of /admin/index.php: call to upgrade_noncore()
The content of the file /mod/facetoface/db/upgrade.php:
700 if ($oldversion < 2013010400) {
701 $table = new xmldb_table('facetoface');
702 $field = new xmldb_field('disablewithindays', XMLDB_TYPE_INTEGER, '3', null, XMLDB_NOTNULL, null, '0', 'approvalreqd');
703
704 if (!$dbman->field_exists($table, $field)) {
705 $dbman->add_field($table, $field);
706 }
707
708 //
709 //
710
711 $table = new xmldb_table('facetoface_sessions');
712 $field = new xmldb_field('disablenewenrolldays', XMLDB_TYPE_INTEGER, '3', null, XMLDB_NOTNULL, null, '0', 'timemodified');
713
714 if (!$dbman->field_exists($table, $field)) {
715 $dbman->add_field($table, $field);
716 }
717
718 $table = new xmldb_table('facetoface_sessions');
719 $field = new xmldb_field('disablesignup', XMLDB_TYPE_INTEGER, '1', XMLDB_UNSIGNED, null, null, null, 'disablenewenrolldays');
720
721 if (!$dbman->field_exists($table, $field)) {
722 $dbman->add_field($table, $field);
723 }
724
725 // facetoface savepoint reached
726 upgrade_mod_savepoint(true, 2013010400, 'facetoface');
727 }
728
729 return $result;
730 }
This is a slightly modified facetoface forked from the original master. The one I am using above is from https://github.com/stgabhas/facetoface-2.0
The screenshot is shown below: