Commit fa1d8916 authored by Kjartan's avatar Kjartan
Browse files

- Cleaning up database definition.

parent 4cb72797
...@@ -82,7 +82,6 @@ CREATE TABLE [dbo].[comments] ( ...@@ -82,7 +82,6 @@ CREATE TABLE [dbo].[comments] (
[comment] [varchar] (8000) NOT NULL , [comment] [varchar] (8000) NOT NULL ,
[hostname] [varchar] (128) NOT NULL , [hostname] [varchar] (128) NOT NULL ,
[timestamp] [int] NOT NULL , [timestamp] [int] NOT NULL ,
[link] [varchar] (16) NULL ,
[score] [int] NOT NULL , [score] [int] NOT NULL ,
[status] [tinyint] NOT NULL , [status] [tinyint] NOT NULL ,
[thread] [varchar] (255) NOT NULL , [thread] [varchar] (255) NOT NULL ,
...@@ -118,7 +117,6 @@ GO ...@@ -118,7 +117,6 @@ GO
CREATE TABLE [dbo].[forum] ( CREATE TABLE [dbo].[forum] (
[nid] [numeric](10, 0) NOT NULL , [nid] [numeric](10, 0) NOT NULL ,
[tid] [numeric](10, 0) NOT NULL , [tid] [numeric](10, 0) NOT NULL ,
[icon] [varchar] (255) NULL ,
[shadow] [numeric](10, 0) NOT NULL [shadow] [numeric](10, 0) NOT NULL
) ON [PRIMARY] ) ON [PRIMARY]
GO GO
......
...@@ -68,7 +68,6 @@ CREATE TABLE book ( ...@@ -68,7 +68,6 @@ CREATE TABLE book (
format tinyint(2) default '0', format tinyint(2) default '0',
log longtext, log longtext,
PRIMARY KEY (nid), PRIMARY KEY (nid),
KEY nid (nid),
KEY parent (parent) KEY parent (parent)
) TYPE=MyISAM; ) TYPE=MyISAM;
...@@ -125,7 +124,6 @@ CREATE TABLE comments ( ...@@ -125,7 +124,6 @@ CREATE TABLE comments (
comment longtext NOT NULL, comment longtext NOT NULL,
hostname varchar(128) NOT NULL default '', hostname varchar(128) NOT NULL default '',
timestamp int(11) NOT NULL default '0', timestamp int(11) NOT NULL default '0',
link varchar(16) NOT NULL default '',
score mediumint(9) NOT NULL default '0', score mediumint(9) NOT NULL default '0',
status tinyint(3) unsigned NOT NULL default '0', status tinyint(3) unsigned NOT NULL default '0',
thread varchar(255) NOT NULL, thread varchar(255) NOT NULL,
...@@ -186,9 +184,9 @@ CREATE TABLE filters ( ...@@ -186,9 +184,9 @@ CREATE TABLE filters (
CREATE TABLE forum ( CREATE TABLE forum (
nid int(10) unsigned NOT NULL default '0', nid int(10) unsigned NOT NULL default '0',
tid int(10) unsigned NOT NULL default '0', tid int(10) unsigned NOT NULL default '0',
icon varchar(255) NOT NULL default '',
shadow int(10) unsigned NOT NULL default '0', shadow int(10) unsigned NOT NULL default '0',
PRIMARY KEY (nid) PRIMARY KEY (nid),
KEY tid (tid)
) TYPE=MyISAM; ) TYPE=MyISAM;
-- --
...@@ -311,8 +309,7 @@ CREATE TABLE page ( ...@@ -311,8 +309,7 @@ CREATE TABLE page (
link varchar(128) NOT NULL default '', link varchar(128) NOT NULL default '',
format tinyint(2) NOT NULL default '0', format tinyint(2) NOT NULL default '0',
description varchar(128) NOT NULL default '', description varchar(128) NOT NULL default '',
PRIMARY KEY (nid), PRIMARY KEY (nid)
KEY nid (nid)
) TYPE=MyISAM; ) TYPE=MyISAM;
-- --
......
...@@ -123,7 +123,6 @@ CREATE TABLE comments ( ...@@ -123,7 +123,6 @@ CREATE TABLE comments (
comment text NOT NULL default '', comment text NOT NULL default '',
hostname varchar(128) NOT NULL default '', hostname varchar(128) NOT NULL default '',
timestamp integer NOT NULL default '0', timestamp integer NOT NULL default '0',
link varchar(16) NOT NULL default '',
score integer NOT NULL default '0', score integer NOT NULL default '0',
status smallint NOT NULL default '0', status smallint NOT NULL default '0',
thread varchar(255) default '', thread varchar(255) default '',
...@@ -174,7 +173,6 @@ CREATE TABLE feed ( ...@@ -174,7 +173,6 @@ CREATE TABLE feed (
CREATE TABLE forum ( CREATE TABLE forum (
nid integer NOT NULL default '0', nid integer NOT NULL default '0',
tid integer NOT NULL default '0', tid integer NOT NULL default '0',
icon varchar(255) NOT NULL default '',
shadow integer NOT NULL default '0', shadow integer NOT NULL default '0',
PRIMARY KEY (nid) PRIMARY KEY (nid)
); );
......
...@@ -678,6 +678,7 @@ function update_79() { ...@@ -678,6 +678,7 @@ function update_79() {
} }
else { else {
update_sql("ALTER TABLE {node} DROP attributes"); update_sql("ALTER TABLE {node} DROP attributes");
update_sql("ALTER TABLE {comment} DROP link";
} }
} }
......
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