r1280: Adding the upgrade file
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 11 Nov 2006 20:38:04 +0000 (20:38 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 11 Nov 2006 20:38:04 +0000 (20:38 +0000)
install/global.php
install/upgrade9.php [new file with mode: 0644]

index 55b3a04b816b5839f10a7671e8059c574c0c2e57..b780ab08e163daa82cb1bebcf88c0f6de7c52df5 100644 (file)
@@ -82,7 +82,8 @@ $bugsys->versions = array(
        '1.1.0'                                         => 6,
        '1.1.1'                                         => 7,
        '1.1.2'                                         => 8,
-       '1.1.3'                                         => -1
+       '1.1.3'                                         => 9,
+       '1.1.4'                                         => -1
 );
 
 // ###################################################################
diff --git a/install/upgrade9.php b/install/upgrade9.php
new file mode 100644 (file)
index 0000000..e53f20f
--- /dev/null
@@ -0,0 +1,92 @@
+<?php
+/*=====================================================================*\
+|| ###################################################################
+|| # Bugdar [#]version[#]
+|| # Copyright ©2002-[#]year[#] Blue Static
+|| #
+|| # This program is free software; you can redistribute it and/or modify
+|| # it under the terms of the GNU General Public License as published by
+|| # the Free Software Foundation; version [#]gpl[#] of the License.
+|| #
+|| # This program is distributed in the hope that it will be useful, but
+|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+|| # more details.
+|| #
+|| # You should have received a copy of the GNU General Public License along
+|| # with this program; if not, write to the Free Software Foundation, Inc.,
+|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+|| ###################################################################
+\*=====================================================================*/
+
+define('STOP_MARK', 2);
+define('ACTIVE_SITE', 'upgrade9.php');
+
+require_once('./global.php');
+require_once('./includes/functions_datastore.php');
+
+page_start();
+
+// ###################################################################
+
+if ($bugsys->in['mark'] == 0)
+{
+?>
+<h1>Welcome to Bugdar</h1>
+
+<p>This upgrade will take from Bugdar 1.1.3 to Bugdar 1.1.4.</p>
+
+<p>To begin the process, please click the button below.</p>
+<?php
+}
+
+// ###################################################################
+
+if ($bugsys->in['mark'] == 1)
+{
+?>
+<h1>Schema Changes</h1>
+
+<p>Changing the storage type of the time zone field from INT to FLOAT to fix a bug.</p>
+<?php
+       
+       $db->query("ALTER TABLE user CHANGE timezone timezone float(4) NOT NULL DEFAULT 0");
+       
+       echo "... done<br />\n";
+}
+
+// ###################################################################
+
+if ($bugsys->in['mark'] == 2)
+{
+?>
+<h1>Version Number Change</h1>
+
+<p>This step finishes the upgrade by inreasing your version number.</p>
+
+<?php
+       
+       require_once('./includes/settings.php');
+               
+       $db->query("UPDATE " . TABLE_PREFIX . "setting SET value = '1.1.4' WHERE varname = 'trackerversion'");
+       
+       build_settings();
+       
+?>
+
+... done.
+
+<?php
+}
+
+// ###################################################################
+
+page_end();
+
+/*=====================================================================*\
+|| ###################################################################
+|| # $HeadURL$
+|| # $Id$
+|| ###################################################################
+\*=====================================================================*/
+?>
\ No newline at end of file