Merged from MOODLE_17_STABLE: fixed the journal upgrade. renaming a null column to not null is unhappy
This commit is contained in:
@@ -83,7 +83,7 @@ function journal_upgrade($oldversion) {
|
||||
}
|
||||
|
||||
if ($oldversion < 2006092100) {
|
||||
table_column('journal_entries', 'comment', 'entrycomment', 'text', '', '', '');
|
||||
table_column('journal_entries', 'comment', 'entrycomment', 'text', '', '', '', 'null');
|
||||
}
|
||||
|
||||
////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
|
||||
|
||||
@@ -58,7 +58,7 @@ function journal_upgrade($oldversion) {
|
||||
}
|
||||
|
||||
if ($oldversion < 2006092100) {
|
||||
table_column('journal_entries', 'comment', 'entrycomment', 'text', '', '', '');
|
||||
table_column('journal_entries', 'comment', 'entrycomment', 'text', '', '', '', 'null');
|
||||
}
|
||||
|
||||
////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
|
||||
|
||||
Reference in New Issue
Block a user