Browse Source

! updating of the install.php / upgrade.php and associated files to catch up with the changes

Spuds 12 năm trước cách đây
mục cha
commit
bb830f7480

+ 1 - 1
other/install.php

@@ -14,7 +14,7 @@
 $GLOBALS['current_smf_version'] = '2.1 Alpha 1';
 $GLOBALS['db_script_version'] = '2-1';
 
-$GLOBALS['required_php_version'] = '5.0.0';
+$GLOBALS['required_php_version'] = '5.1.0';
 
 // Don't have PHP support, do you?
 // ><html dir="ltr"><head><title>Error!</title></head><body>Sorry, this installer requires PHP!<div style="display: none;">

+ 1 - 0
other/install_2-1_mysql.sql

@@ -960,6 +960,7 @@ CREATE TABLE {$db_prefix}log_packages (
   failed_steps text NOT NULL,
   themes_installed varchar(255) NOT NULL default '',
   db_changes text NOT NULL,
+  credits varchar(255) NOT NULL default '',
   PRIMARY KEY (id_install),
   KEY filename (filename(15))
 ) ENGINE=MyISAM;

+ 1 - 0
other/install_2-1_postgresql.sql

@@ -1252,6 +1252,7 @@ CREATE TABLE {$db_prefix}log_packages (
   failed_steps text NOT NULL,
   themes_installed varchar(255) NOT NULL,
   db_changes text NOT NULL,
+  credits varchar(255) NOT NULL,
   PRIMARY KEY (id_install)
 );
 

+ 1 - 0
other/install_2-1_sqlite.sql

@@ -1020,6 +1020,7 @@ CREATE TABLE {$db_prefix}log_packages (
   install_state smallint NOT NULL default '1',
   failed_steps text NOT NULL,
   db_changes text NOT NULL,
+  credits varchar(255) NOT NULL,
   themes_installed varchar(255) NOT NULL
 );
 

+ 1 - 1
other/upgrade.php

@@ -15,7 +15,7 @@
 define('SMF_VERSION', '2.1 Alpha 1');
 define('SMF_LANG_VERSION', '2.0');
 
-$GLOBALS['required_php_version'] = '5.0.0';
+$GLOBALS['required_php_version'] = '5.1.0';
 $GLOBALS['required_mysql_version'] = '4.0.18';
 
 $databases = array(

+ 8 - 16
other/upgrade_2-1_mysql.sql

@@ -17,22 +17,6 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}member_logins (
 ) ENGINE=MyISAM{$db_collation};
 ---#
 
----# Moving the cookie name to the database...
----{
-if (!isset($modSettings['cookie_name']))
-{
-	if (empty($cookiename))
-		$cookiename = 'SMFCookie11';
-
-	upgrade_query("
-		INSERT INTO {$db_prefix}settings
-			(variable, value)
-		VALUES
-			('cookie_name', '$cookiename')");
-}
----}
----#
-
 ---# Copying the current package backup setting...
 ---{
 if (!isset($modSettings['package_make_full_backups']) && isset($modSettings['package_make_backups']))
@@ -136,4 +120,12 @@ CHANGE ip_low3 ip_low3 tinyint(3) unsigned NOT NULL DEFAULT '0',
 CHANGE ip_high3 ip_high3 tinyint(3) unsigned NOT NULL DEFAULT '0',
 CHANGE ip_low4 ip_low4 tinyint(3) unsigned NOT NULL DEFAULT '0',
 CHANGE ip_high4 ip_high4 tinyint(3) unsigned NOT NULL DEFAULT '0';
+---#
+
+/******************************************************************************/
+--- Adding support for <credits> tag in package manager
+/******************************************************************************/
+---# Adding new columns to log_packages ..
+ALTER TABLE {$db_prefix}log_packages
+ADD COLUMN credits varchar(255) NOT NULL DEFAULT '';
 ---#

+ 8 - 16
other/upgrade_2-1_postgresql.sql

@@ -21,22 +21,6 @@ CREATE TABLE {$db_prefix}member_logins (
 );
 ---#
 
----# Moving the cookie name to the database...
----{
-if (!isset($modSettings['cookie_name']))
-{
-	if (empty($cookiename))
-		$cookiename = 'SMFCookie11';
-
-	upgrade_query("
-		INSERT INTO {$db_prefix}settings
-			(variable, value)
-		VALUES
-			('cookie_name', '$cookiename')");
-}
----}
----#
-
 ---# Copying the current package backup setting...
 ---{
 if (!isset($modSettings['package_make_full_backups']) && isset($modSettings['package_make_backups']))
@@ -140,4 +124,12 @@ CHANGE ip_low3 ip_low3 tinyint(3) unsigned NOT NULL DEFAULT '0',
 CHANGE ip_high3 ip_high3 tinyint(3) unsigned NOT NULL DEFAULT '0',
 CHANGE ip_low4 ip_low4 tinyint(3) unsigned NOT NULL DEFAULT '0',
 CHANGE ip_high4 ip_high4 tinyint(3) unsigned NOT NULL DEFAULT '0';
+---#
+
+/******************************************************************************/
+--- Adding support for <credits> tag in package manager
+/******************************************************************************/
+---# Adding new columns to log_packages ..
+ALTER TABLE {$db_prefix}log_packages
+ADD COLUMN credits varchar(255) NOT NULL DEFAULT '';
 ---#

+ 8 - 16
other/upgrade_2-1_sqlite.sql

@@ -17,22 +17,6 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}member_logins (
 );
 ---#
 
----# Moving the cookie name to the database...
----{
-if (!isset($modSettings['cookie_name']))
-{
-	if (empty($cookiename))
-		$cookiename = 'SMFCookie11';
-
-	upgrade_query("
-		INSERT INTO {$db_prefix}settings
-			(variable, value)
-		VALUES
-			('cookie_name', '$cookiename')");
-}
----}
----#
-
 ---# Copying the current package backup setting...
 ---{
 if (!isset($modSettings['package_make_full_backups']) && isset($modSettings['package_make_backups']))
@@ -136,4 +120,12 @@ CHANGE ip_low3 ip_low3 tinyint(3) unsigned NOT NULL DEFAULT '0',
 CHANGE ip_high3 ip_high3 tinyint(3) unsigned NOT NULL DEFAULT '0',
 CHANGE ip_low4 ip_low4 tinyint(3) unsigned NOT NULL DEFAULT '0',
 CHANGE ip_high4 ip_high4 tinyint(3) unsigned NOT NULL DEFAULT '0';
+---#
+
+/******************************************************************************/
+--- Adding support for <credits> tag in package manager
+/******************************************************************************/
+---# Adding new columns to log_packages ..
+ALTER TABLE {$db_prefix}log_packages
+ADD COLUMN credits varchar(255) NOT NULL DEFAULT '';
 ---#