r1547: Adding the upgrade14.php script which runs the upgrade to 1.2.0 RC1
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 31 May 2007 17:54:36 +0000 (17:54 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 31 May 2007 17:54:36 +0000 (17:54 +0000)
install/global.php
install/upgrade14.php [new file with mode: 0644]

index 1cc2c03fe196c74c5d44335d7c3bab0138ce5f1d..da3732fc626d058b877450a9d5108e38f81a18b2 100644 (file)
@@ -86,7 +86,8 @@ $bugsys->versions = array(
        '1.1.5'                                         => 11,
        '1.2.0 Beta 1'                          => 12,
        '1.2.0 Beta 2'                          => 13,
-       '1.2.0 Beta 3'                          => -1
+       '1.2.0 Beta 3'                          => 14,
+       '1.2.0 Release Candidate 1'     => -1
 );
 
 // ###################################################################
diff --git a/install/upgrade14.php b/install/upgrade14.php
new file mode 100644 (file)
index 0000000..8dc86a8
--- /dev/null
@@ -0,0 +1,86 @@
+<?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', 'upgrade14.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.0 Beta 3 to Bugdar 1.2.0 Release Candidate 1.</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.0 Release Candidate 1' WHERE varname = 'trackerversion'");
+       
+       build_settings();
+       
+?>
+
+... done.
+
+<?php
+}
+
+// ###################################################################
+
+else if ($bugsys->in['mark'] == 2)
+{
+?>
+<h1>Database Character Set and Collation</h1>
+<p>Earlier versions of Bugdar did not recommend or enforce database character set support. Unless you have a very good reason not to (you should know if you do), it is recommended that you run <a href="convert_database_charset.php">this script</a> to convert your MySQL database from your current character set to UTF8. This should especially help international users.</p>
+<p>This step is not required.</p>
+<?php
+}
+
+// ###################################################################
+
+page_end();
+
+/*=====================================================================*\
+|| ###################################################################
+|| # $HeadURL$
+|| # $Id$
+|| ###################################################################
+\*=====================================================================*/
+?>
\ No newline at end of file