diff --git a/mod/choice/db/mysql.php b/mod/choice/db/mysql.php index baa4aec1ee5..cb9d2863d73 100644 --- a/mod/choice/db/mysql.php +++ b/mod/choice/db/mysql.php @@ -38,6 +38,7 @@ function choice_upgrade($oldversion) { table_column("choice", "", "allowupdate", "integer", "2", "unsigned", "0", "", "release"); } if ($oldversion < 2004070102) { + modify_database("", "UPDATE prefix_choice SET allowupdate = '1' WHERE publish = 0;"); modify_database("", "UPDATE prefix_choice SET release = '1' WHERE publish > 0;"); modify_database("", "UPDATE prefix_choice SET publish = publish - 1 WHERE publish > 0;"); } diff --git a/mod/choice/db/postgres7.php b/mod/choice/db/postgres7.php index 96a54c03162..1d4062fc63c 100644 --- a/mod/choice/db/postgres7.php +++ b/mod/choice/db/postgres7.php @@ -24,6 +24,7 @@ function choice_upgrade($oldversion) { table_column("choice", "", "allowupdate", "integer", "2", "unsigned", "0", "", "release"); } if ($oldversion < 2004070102) { + modify_database("", "UPDATE prefix_choice SET allowupdate = '1' WHERE publish = 0;"); modify_database("", "UPDATE prefix_choice SET release = '1' WHERE publish > 0;"); modify_database("", "UPDATE prefix_choice SET publish = publish - 1 WHERE publish > 0;"); }