Skip to content

Commit

Permalink
Execute some updates silently (dropping non existent columns in works…
Browse files Browse the repository at this point in the history
…hop) bug 2964
  • Loading branch information
mjollnir_ committed Oct 12, 2005
1 parent 763f376 commit 04c9c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/workshop/db/postgres7.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ function workshop_upgrade($oldversion) {
execute_sql("ALTER TABLE {$CFG->prefix}workshop DROP COLUMN includeteachersgrade");
execute_sql("ALTER TABLE {$CFG->prefix}workshop DROP COLUMN biasweight");
execute_sql("ALTER TABLE {$CFG->prefix}workshop DROP COLUMN reliabilityweight");
execute_sql("ALTER TABLE {$CFG->prefix}workshop DROP COLUMN teacherloading");
execute_sql("ALTER TABLE {$CFG->prefix}workshop DROP COLUMN assessmentstodrop");
execute_sql("ALTER TABLE {$CFG->prefix}workshop DROP COLUMN teacherloading",false); //silent
execute_sql("ALTER TABLE {$CFG->prefix}workshop DROP COLUMN assessmentstodrop",false); //silent
}

if ($oldversion < 2004092400) {
Expand Down

0 comments on commit 04c9c46

Please sign in to comment.