Drop the latest TEXT default existing since XMLDB debut. MDL-6218

This commit is contained in:
stronk7 2007-07-23 23:28:26 +00:00
parent 16d86fda3d
commit b264019bcb
2 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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