Commit 8daa054e authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove weird default '' on postgres after table_column call

Signed-off-by: default avatarRichard Mansfield <>
parent e1a093d9
......@@ -1385,6 +1385,8 @@ function xmldb_core_upgrade($oldversion=0) {
table_column('artefact', null, 'authorname', 'text', null, null, null, '');
if (is_postgres()) {
execute_sql("ALTER TABLE {artefact} ALTER COLUMN authorname DROP DEFAULT");
set_field('artefact', 'authorname', null);
execute_sql('UPDATE {artefact} SET authorname = FROM {group} g WHERE "group" =');
execute_sql("UPDATE {artefact} SET authorname = CASE WHEN institution = 'mahara' THEN ? ELSE i.displayname END FROM {institution} i WHERE institution =", array(get_config('sitename')));
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