MDL-63276 upgrade: clean < 3.2.0 upgrade steps

3.7 (min PHP 7.1) requires 3.2 (first version supporting PHP 7.1)

This just deletes all the upgrade steps previous to 3.2.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 < 2016120500 (v3.2.0) as anti-cheating measure.

Next commit will get rid of/deprecate all the upgradelib functions
not used anymore in codebase. (note there isn't any this time).
This commit is contained in:
Eloy Lafuente (stronk7)
2019-01-03 01:17:17 +01:00
parent f580d20adf
commit a12207be25
106 changed files with 13 additions and 1166 deletions
-18
View File
@@ -26,24 +26,6 @@ function xmldb_data_upgrade($oldversion) {
$dbman = $DB->get_manager();
if ($oldversion < 2016090600) {
// Define field config to be added to data.
$table = new xmldb_table('data');
$field = new xmldb_field('config', XMLDB_TYPE_TEXT, null, null, null, null, null, 'timemodified');
// Conditionally launch add field config.
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}
// Data savepoint reached.
upgrade_mod_savepoint(true, 2016090600, 'data');
}
// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2017032800) {
// Define field completionentries to be added to data. Require a number of entries to be considered complete.