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

Fix upgrade for mysql

parent 40c542d9
...@@ -1198,7 +1198,12 @@ function xmldb_core_upgrade($oldversion=0) { ...@@ -1198,7 +1198,12 @@ function xmldb_core_upgrade($oldversion=0) {
} }
if ($oldversion < 2008062310) { if ($oldversion < 2008062310) {
execute_sql('ALTER TABLE {view} ALTER COLUMN ownerformat DROP NOT NULL'); if (is_postgres()) {
execute_sql('ALTER TABLE {view} ALTER COLUMN ownerformat DROP NOT NULL');
}
else if (is_mysql()) {
execute_sql('ALTER TABLE {view} MODIFY ownerformat TEXT NULL');
}
} }
return $status; return $status;
......
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