diff --git a/update.php b/update.php index 876f1b6b5b2..178fdeea4d0 100644 --- a/update.php +++ b/update.php @@ -84,79 +84,6 @@ function update_info_page() { $output .= "
users_roles
and locales_meta
tables manually before upgrading. To create these tables, issue the following SQL commands:
-
- MySQL specific example:
-- CREATE TABLE users_roles ( - uid int(10) unsigned NOT NULL default '0', - rid int(10) unsigned NOT NULL default '0', - PRIMARY KEY (uid, rid) - ); - CREATE TABLE locales_meta ( - locale varchar(12) NOT NULL default '', - name varchar(64) NOT NULL default '', - enabled int(2) NOT NULL default '0', - isdefault int(2) NOT NULL default '0', - plurals int(1) NOT NULL default '0', - formula varchar(128) NOT NULL default '', - PRIMARY KEY (locale) - ); -- -
PostgreSQL specific example:
-- CREATE TABLE users_roles ( - uid integer NOT NULL default '0', - rid integer NOT NULL default '0', - PRIMARY KEY (uid, rid) - ); - CREATE TABLE locales_meta ( - locale varchar(12) NOT NULL default '', - name varchar(64) NOT NULL default '', - enabled int4 NOT NULL default '0', - isdefault int4 NOT NULL default '0', - plurals int4 NOT NULL default '0', - formula varchar(128) NOT NULL default '', - PRIMARY KEY (locale) - ); --
bootstrap
and throttle
fields to the system
table manually before upgrading. To add the required fields, issue the following SQL commands:
-
- MySQL specific example:
-- ALTER TABLE system ADD throttle tinyint(1) NOT NULL DEFAULT '0'; - ALTER TABLE system ADD bootstrap int(2); -- -
PostgreSQL specific example:
-- ALTER TABLE system ADD throttle smallint; - ALTER TABLE system ALTER COLUMN throttle SET DEFAULT '0'; - UPDATE system SET throttle = 0; - ALTER TABLE system ALTER COLUMN throttle SET NOT NULL; - ALTER TABLE system ADD bootstrap integer; --
sessions
table manually before upgrading. After creating the table, you will want to log in and immediately continue the upgrade. To create the sessions
table, issue the following SQL command:
-
- MySQL specific example:
-- CREATE TABLE sessions ( - uid int(10) unsigned NOT NULL, - sid varchar(32) NOT NULL default '', - hostname varchar(128) NOT NULL default '', - timestamp int(11) NOT NULL default '0', - session text, - KEY uid (uid), - KEY sid (sid(4)), - KEY timestamp (timestamp)); --
For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
'; return $output; }