Commit a5e833b4 authored by Dries's avatar Dries
Browse files

- Patch #39697 by Cvbge and Markus: critical bug: fixed upgrade path of drupal.module changes.

parent 304e0b29
...@@ -1349,7 +1349,7 @@ function system_update_166() { ...@@ -1349,7 +1349,7 @@ function system_update_166() {
switch ($GLOBALS['db_type']) { switch ($GLOBALS['db_type']) {
case 'mysqli': case 'mysqli':
case 'mysql': case 'mysql':
update_sql("CREATE TABLE client ( $ret[] = update_sql("CREATE TABLE {client} (
cid int(10) unsigned NOT NULL auto_increment, cid int(10) unsigned NOT NULL auto_increment,
link varchar(255) NOT NULL default '', link varchar(255) NOT NULL default '',
name varchar(128) NOT NULL default '', name varchar(128) NOT NULL default '',
...@@ -1363,7 +1363,7 @@ function system_update_166() { ...@@ -1363,7 +1363,7 @@ function system_update_166() {
changed int(11) NOT NULL default '0', changed int(11) NOT NULL default '0',
PRIMARY KEY (cid) PRIMARY KEY (cid)
) TYPE=MyISAM"); ) TYPE=MyISAM");
update_sql("CREATE TABLE client_system ( $ret[] = update_sql("CREATE TABLE {client_system} (
cid int(10) NOT NULL default '0', cid int(10) NOT NULL default '0',
name varchar(255) NOT NULL default '', name varchar(255) NOT NULL default '',
type varchar(255) NOT NULL default '', type varchar(255) NOT NULL default '',
...@@ -1372,7 +1372,7 @@ function system_update_166() { ...@@ -1372,7 +1372,7 @@ function system_update_166() {
break; break;
case 'pgsql': case 'pgsql':
update_sql("CREATE TABLE client ( $ret[] = update_sql("CREATE TABLE {client} (
cid SERIAL, cid SERIAL,
link varchar(255) NOT NULL default '', link varchar(255) NOT NULL default '',
name varchar(128) NOT NULL default '', name varchar(128) NOT NULL default '',
...@@ -1386,7 +1386,7 @@ function system_update_166() { ...@@ -1386,7 +1386,7 @@ function system_update_166() {
changed integer NOT NULL default '0', changed integer NOT NULL default '0',
PRIMARY KEY (cid) PRIMARY KEY (cid)
)"); )");
update_sql("CREATE TABLE client_system ( $ret[] = update_sql("CREATE TABLE {client_system} (
cid integer NOT NULL, cid integer NOT NULL,
name varchar(255) NOT NULL default '', name varchar(255) NOT NULL default '',
type varchar(255) NOT NULL default '', type varchar(255) NOT NULL default '',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment