mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
blocks upgrade: MDL-19511 put back important code that Petr commented out!
The actual mistake was the name of the previous column, which is totally irrelevant, but which XMLDB had filled in incorrectly. Grrr!
This commit is contained in:
parent
e3d84fb05d
commit
a26146d563
@ -1796,16 +1796,15 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
||||
}
|
||||
|
||||
if ($result && $oldversion < 2009050607) {
|
||||
//TODO: remove, this field does not exist yet!
|
||||
/// Changing precision of field defaultregion on table block_instances to (16)
|
||||
/* $table = new xmldb_table('block_instances');
|
||||
$field = new xmldb_field('defaultregion', XMLDB_TYPE_CHAR, '16', null, XMLDB_NOTNULL, null, null, 'subpagepattern');
|
||||
$table = new xmldb_table('block_instances');
|
||||
$field = new xmldb_field('defaultregion', XMLDB_TYPE_CHAR, '16', null, XMLDB_NOTNULL, null, null, 'pagetype');
|
||||
|
||||
/// Launch change of precision for field defaultregion
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
/// Main savepoint reached
|
||||
upgrade_main_savepoint($result, 2009050607);*/
|
||||
upgrade_main_savepoint($result, 2009050607);
|
||||
}
|
||||
|
||||
if ($result && $oldversion < 2009050608) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user