From 3cbddf6e548217fd12539db161ecf0e081a766d0 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 3 Apr 2007 21:43:33 +0000 Subject: [PATCH] r1531: Adding upgrade13.php which fixes some previous issues --- install/upgrade13.php | 99 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 install/upgrade13.php diff --git a/install/upgrade13.php b/install/upgrade13.php new file mode 100644 index 0000000..4e84d9c --- /dev/null +++ b/install/upgrade13.php @@ -0,0 +1,99 @@ +in['mark'] == 0) +{ +?> +

Welcome to Bugdar

+ +

This upgrade will take from Bugdar 1.2.0 Beta 2 to Bugdar 1.2.0 Beta 3.

+ +

To begin the process, please click the button below.

+in['mark'] == 1) +{ +?> +

Potential Schema Updates

+ +

Due to a small error in a previous scripts, this corrects some problems.

+showerrors = false; + if (!$db->query("SELECT groupids FROM " . TABLE_PREFIX . "user")) + { + $db->query("ALTER TABLE " . TABLE_PREFIX . "user ADD groupids TEXT NULL"); + echo "Adding user.groupids
\n"; + } + + if ($db->query("SELECT * FROM " . TABLE_PREFIX . "component")) + { + $db->query("DROP TABLE " . TABLE_PREFIX . "component"); + echo "Dropping the component table
\n"; + } +} + +// ################################################################### + +if ($bugsys->in['mark'] == 2) +{ +?> +

Version Number Change

+ +

This step finishes the upgrade by inreasing your version number.

+ +query("UPDATE " . TABLE_PREFIX . "setting SET value = '1.2.0 Beta 3' WHERE varname = 'trackerversion'"); + + build_settings(); + +?> + +... done. + + \ No newline at end of file -- 2.22.5