r1155: Add the upgrade script for RC1
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 16 Sep 2006 22:47:46 +0000 (22:47 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 16 Sep 2006 22:47:46 +0000 (22:47 +0000)
install/global.php
install/upgrade4.php [new file with mode: 0644]

index 7c948eac42eb0b7b8f241787e90a1e127ce9ee0b..af7716fd910a7b29ba910cc8beb16f2307958049 100644 (file)
@@ -73,10 +73,11 @@ $bugsys->datastore = array();
 // ###################################################################
 
 $bugsys->versions = array(
-       '1.0.0'                 => 1,
-       '1.0.1'                 => 2,
-       '1.1.0 Beta 1'  => 3,
-       '1.1.0 Beta 2'  => -1
+       '1.0.0'                                         => 1,
+       '1.0.1'                                         => 2,
+       '1.1.0 Beta 1'                          => 3,
+       '1.1.0 Beta 2'                          => 4,
+       '1.1.0 Release Candidate 1' => -1
 );
 
 // ###################################################################
diff --git a/install/upgrade4.php b/install/upgrade4.php
new file mode 100644 (file)
index 0000000..80e1aa9
--- /dev/null
@@ -0,0 +1,78 @@
+<?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', 1);
+define('ACTIVE_SITE', 'upgrade4.php');
+
+require_once('./global.php');
+
+page_start();
+
+// ###################################################################
+
+if ($bugsys->in['mark'] == 0)
+{
+?>
+<h1>Welcome to Bugdar</h1>
+
+<p>This upgrade will take from Bugdar 1.1.0 Beta 2 to Bugdar 1.1.0 Release Candidate 1.</p>
+
+<p>Not much has to be done, we just need to bump your version number.</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
+       
+       require_once('./includes/settings.php');
+               
+       $db->query("UPDATE " . TABLE_PREFIX . "setting SET value = '1.1.0 Release Candidate 1' WHERE varname = 'trackerversion'");
+       
+       build_settings();
+       
+?>
+
+... done.
+
+<?php
+}
+
+// ###################################################################
+
+page_end();
+
+/*=====================================================================*\
+|| ###################################################################
+|| # $HeadURL$
+|| # $Id$
+|| ###################################################################
+\*=====================================================================*/
+?>
\ No newline at end of file