Commit ddc327c9 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't create submittedtime column with not null in upgrade (bug #638550)


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 7003d25b
......@@ -1436,7 +1436,10 @@ function xmldb_core_upgrade($oldversion=0) {
}
if ($oldversion < 2010040800) {
execute_sql('ALTER TABLE {view} ADD COLUMN submittedtime TIMESTAMP');
$table = new XMLDBTable('view');
$field = new XMLDBField('submittedtime');
$field->setAttributes(XMLDB_TYPE_DATETIME, null, null);
add_field($table, $field);
}
if ($oldversion < 2010041200) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment