From eeb2d76ee88d8dd07a92ce289c8ebe5921bf85d7 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 1 Jul 2004 13:30:50 +0000 Subject: [PATCH] Whoops! Fixed one tiny upgrade thing ... this will make choices with "publish" turned off upgrade predictably --- mod/choice/db/mysql.php | 1 + mod/choice/db/postgres7.php | 1 + 2 files changed, 2 insertions(+) diff --git a/mod/choice/db/mysql.php b/mod/choice/db/mysql.php index baa4aec1ee..cb9d2863d7 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 96a54c0316..1d4062fc63 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;"); } -- 2.39.5