Adding the upgrade script for version 1.2.3
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 13 Jan 2009 17:50:39 +0000 (12:50 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 15 Jan 2009 16:15:29 +0000 (11:15 -0500)
* install/global.php: Add the version record
* install/upgrade18.php: New file

install/global.php
install/upgrade18.php [new file with mode: 0644]

index 147a2555a0bc8625266683f1c9c534c5b3533eb5..3db62d4552cf622b95de02d18728a3161d32e47d 100644 (file)
@@ -97,7 +97,8 @@ $bugsys->versions = array(
        '1.2.0 Release Candidate 1'     => 15,
        '1.2.0'                                         => 16,
        '1.2.1'                                         => 17,
-       '1.2.2'                                         => -1
+       '1.2.2'                                         => 18,
+       '1.2.3'                                         => -1
 );
 
 // ###################################################################
diff --git a/install/upgrade18.php b/install/upgrade18.php
new file mode 100644 (file)
index 0000000..fd31e2e
--- /dev/null
@@ -0,0 +1,69 @@
+<?php
+/*=====================================================================*\
+|| ###################################################################
+|| # Bugdar
+|| # Copyright (c)2004-2009 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 2 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', 1);
+define('ACTIVE_SITE', 'upgrade18.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.2.2 to Bugdar 1.2.3.</p>
+
+<p>To begin the process, please click the button below.</p>
+<?php
+}
+
+// ###################################################################
+
+if ($bugsys->in['mark'] == 1)
+{
+?>
+<h1>Version Number Change</h1>
+
+<p>This step finishes the upgrade by inreasing your version number.</p>
+
+<?php
+       
+       $db->query("UPDATE " . TABLE_PREFIX . "setting SET value = '1.2.3' WHERE varname = 'trackerversion'");
+       
+       build_settings();
+       
+?>
+
+... done.
+
+<?php
+}
+
+// ###################################################################
+
+page_end();
+
+?>
\ No newline at end of file