mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Drop the latest TEXT default existing since XMLDB debut. MDL-6218
This commit is contained in:
parent
16d86fda3d
commit
b264019bcb
@ -1438,6 +1438,19 @@ function xmldb_main_upgrade($oldversion=0) {
|
||||
}
|
||||
}
|
||||
|
||||
if ($result && $oldversion < 2007072400) {
|
||||
/// Dropping one DEFAULT in a TEXT column. It's was only one remaining
|
||||
/// since Moodle 1.7, so new servers won't have those anymore.
|
||||
|
||||
/// Changing the default of field sessdata on table sessions2 to drop it
|
||||
$table = new XMLDBTable('sessions2');
|
||||
$field = new XMLDBField('sessdata');
|
||||
$field->setAttributes(XMLDB_TYPE_TEXT, 'big', null, null, null, null, null, null, 'modified');
|
||||
|
||||
/// Launch change of default for field sessdata
|
||||
$result = $result && change_field_default($table, $field);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
/// drop old gradebook tables
|
||||
|
@ -6,7 +6,7 @@
|
||||
// This is compared against the values stored in the database to determine
|
||||
// whether upgrades should be performed (see lib/db/*.php)
|
||||
|
||||
$version = 2007072304; // YYYYMMDD = date
|
||||
$version = 2007072400; // YYYYMMDD = date
|
||||
// XY = increments within a single day
|
||||
|
||||
$release = '1.9 dev'; // Human-friendly version name
|
||||
|
Loading…
x
Reference in New Issue
Block a user