Commit 9af704d3 authored by Dries's avatar Dries

- Modified patch #39697 by nedjo: enable sites to post information on their modules, themes.

parent 9e23a23d
......@@ -229,17 +229,33 @@ CREATE TABLE node_comment_statistics (
) TYPE=MyISAM;
--
-- Table structure for table 'directory'
-- Table structure for table 'client'
--
CREATE TABLE directory (
CREATE TABLE client (
cid int(10) unsigned NOT NULL auto_increment,
link varchar(255) NOT NULL default '',
name varchar(128) NOT NULL default '',
mail varchar(128) NOT NULL default '',
slogan longtext NOT NULL,
mission longtext NOT NULL,
timestamp int(11) NOT NULL default '0',
PRIMARY KEY (link)
users int(10) NOT NULL default '0',
nodes int(10) NOT NULL default '0',
version varchar(35) NOT NULL default'',
created int(11) NOT NULL default '0',
changed int(11) NOT NULL default '0',
PRIMARY KEY (cid)
) TYPE=MyISAM;
--
-- Table structure for table 'client_system'
--
CREATE TABLE client_system (
cid int(10) NOT NULL default '0',
name varchar(255) NOT NULL default '',
type varchar(255) NOT NULL default '',
PRIMARY KEY (cid,name)
) TYPE=MyISAM;
--
......
......@@ -230,14 +230,30 @@ CREATE INDEX node_comment_statistics_last_comment_timestamp_idx ON node_comment_
-- Table structure for directory
--
CREATE TABLE directory (
CREATE TABLE client (
cid SERIAL,
link varchar(255) NOT NULL default '',
name varchar(128) NOT NULL default '',
mail varchar(128) NOT NULL default '',
slogan text NOT NULL default '',
mission text NOT NULL default '',
timestamp integer NOT NULL default '0',
PRIMARY KEY (link)
users integer NOT NULL default '0',
nodes integer NOT NULL default '0',
version varchar(35) NOT NULL default'',
created integer NOT NULL default '0',
changed integer NOT NULL default '0',
PRIMARY KEY (cid)
);
--
-- Table structure for table 'client_system'
--
CREATE TABLE client_system (
cid integer NOT NULL,
name varchar(255) NOT NULL default '',
type varchar(255) NOT NULL default '',
PRIMARY KEY (cid,name)
);
--
......
......@@ -1341,3 +1341,61 @@ function system_update_165() {
variable_del('ping_cron_last');
return array();
}
function system_update_166() {
$ret = array();
$ret[] = update_sql("DROP TABLE {directory}");
switch ($GLOBALS['db_type']) {
case 'mysqli':
case 'mysql':
update_sql("CREATE TABLE client (
cid int(10) unsigned NOT NULL auto_increment,
link varchar(255) NOT NULL default '',
name varchar(128) NOT NULL default '',
mail varchar(128) NOT NULL default '',
slogan longtext NOT NULL,
mission longtext NOT NULL,
users int(10) NOT NULL default '0',
nodes int(10) NOT NULL default '0',
version varchar(35) NOT NULL default'',
created int(11) NOT NULL default '0',
changed int(11) NOT NULL default '0',
PRIMARY KEY (cid)
) TYPE=MyISAM");
update_sql("CREATE TABLE client_system (
cid int(10) NOT NULL default '0',
name varchar(255) NOT NULL default '',
type varchar(255) NOT NULL default '',
PRIMARY KEY (cid,name)
) TYPE=MyISAM");
break;
case 'pgsql':
update_sql("CREATE TABLE client (
cid SERIAL,
link varchar(255) NOT NULL default '',
name varchar(128) NOT NULL default '',
mail varchar(128) NOT NULL default '',
slogan text NOT NULL default '',
mission text NOT NULL default '',
users integer NOT NULL default '0',
nodes integer NOT NULL default '0',
version varchar(35) NOT NULL default'',
created integer NOT NULL default '0',
changed integer NOT NULL default '0',
PRIMARY KEY (cid)
)");
update_sql("CREATE TABLE client_system (
cid integer NOT NULL,
name varchar(255) NOT NULL default '',
type varchar(255) NOT NULL default '',
PRIMARY KEY (cid,name)
)");
break;
}
return $ret;
}
This diff is collapsed.
This diff is collapsed.
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