r1386: Adding the upgrade script for 1.1.5 1.1.5
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 3 Feb 2007 21:59:41 +0000 (21:59 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 3 Feb 2007 21:59:41 +0000 (21:59 +0000)
install/global.php
install/upgrade10.php [new file with mode: 0644]

index 70b26ca686015415253a8228c7f640ad6bd076f8..77cd0c13bc516aff5739cc16e851d445b007d579 100644 (file)
@@ -82,7 +82,8 @@ $bugsys->versions = array(
        '1.1.1'                                         => 7,
        '1.1.2'                                         => 8,
        '1.1.3'                                         => 9,
-       '1.1.4'                                         => -1
+       '1.1.4'                                         => 10,
+       '1.1.5'                                         => -1
 );
 
 // ###################################################################
diff --git a/install/upgrade10.php b/install/upgrade10.php
new file mode 100644 (file)
index 0000000..db2839e
--- /dev/null
@@ -0,0 +1,77 @@
+<?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', 'upgrade10.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.4 to Bugdar 1.1.5.</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.5' WHERE varname = 'trackerversion'");
+       
+       build_settings();
+       
+?>
+
+... done.
+
+<?php
+}
+
+// ###################################################################
+
+page_end();
+
+/*=====================================================================*\
+|| ###################################################################
+|| # $HeadURL$
+|| # $Id$
+|| ###################################################################
+\*=====================================================================*/
+?>
\ No newline at end of file