$func) {
print "$date
\n
\n"; $ret = $func(); foreach ($ret as $return) { print $return[1]; print $return[2]; } variable_set("update_start", $date); print "\n"; } } function update_page_header($title) { $output = "
users_roles
table manually before upgrading. To create the users_roles
table, 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) );
PostgreSQL specific example:
CREATE TABLE users_roles ( uid integer NOT NULL default '0', rid integer NOT NULL default '0', PRIMARY KEY (uid, rid) );
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));
update.php
to by-pass this access check; in that case, open update.php
in a text editor and follow the instructions at the top.";
print update_page_footer();
}
}
else {
update_info();
}
?>