MDL-59159 upgrade: clean < 3.1.0 upgrade steps

LTS (3.5) requires previous LTS (3.1)

This just deletes all the upgrade steps previous to 3.1.0. Some
small adjustments, like adding missing MOODLE_INTERNAL or tweaking
globals can also be applied when needed.

Also includes an upgrade step to prevent upgrading from any
version < 2016052300 (v3.1.0) as anti-cheating measure.

Next commit will get rid of/deprecate all the upgradelib functions
not used anymore in codebase.
This commit is contained in:
Eloy Lafuente (stronk7)
2017-12-04 01:18:57 +01:00
parent 4111611710
commit e4eba4c346
99 changed files with 8 additions and 1593 deletions
-19
View File
@@ -26,25 +26,6 @@ function xmldb_data_upgrade($oldversion) {
$dbman = $DB->get_manager();
if ($oldversion < 2016030300) {
// Define field timemodified to be added to data.
$table = new xmldb_table('data');
$field = new xmldb_field('timemodified', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '0', 'notification');
// Conditionally launch add field timemodified.
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}
// Data savepoint reached.
upgrade_mod_savepoint(true, 2016030300, 'data');
}
// Moodle v3.1.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2016090600) {
// Define field config to be added to data.