From 83f6495c9aa810a884b7ca2c44d19f3f32b6092a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 30 Dec 2000 11:55:52 +0000 Subject: [PATCH] - Jeroen: here are the correct and up-to-date database tables! --- database/database.mysql | 50 ++++++++++++++++++++++++++++++++--------- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/database/database.mysql b/database/database.mysql index 9fc8c7fb951..cecc968f770 100644 --- a/database/database.mysql +++ b/database/database.mysql @@ -1,3 +1,21 @@ +CREATE TABLE admin_blocks ( + id tinyint(4) DEFAULT '0' NOT NULL auto_increment, + subject varchar(64) DEFAULT '' NOT NULL, + content text, + info varchar(128) DEFAULT '' NOT NULL, + link varchar(128) DEFAULT '' NOT NULL, + PRIMARY KEY (id) +); + +CREATE TABLE affiliates ( + id int(11) DEFAULT '0' NOT NULL auto_increment, + link varchar(255) DEFAULT '' NOT NULL, + name varchar(255) DEFAULT '' NOT NULL, + contact varchar(255) DEFAULT '' NOT NULL, + UNIQUE link (link), + PRIMARY KEY (id) +); + CREATE TABLE bans ( id tinyint(4) DEFAULT '0' NOT NULL auto_increment, mask varchar(255) DEFAULT '' NOT NULL, @@ -8,6 +26,14 @@ CREATE TABLE bans ( PRIMARY KEY (id) ); +CREATE TABLE blocks ( + name varchar(64) DEFAULT '' NOT NULL, + module varchar(64) DEFAULT '' NOT NULL, + offset tinyint(2) DEFAULT '0' NOT NULL, + status tinyint(2) DEFAULT '0' NOT NULL, + PRIMARY KEY (name) +); + CREATE TABLE channel ( id int(11) DEFAULT '0' NOT NULL auto_increment, site varchar(255) DEFAULT '' NOT NULL, @@ -35,8 +61,8 @@ CREATE TABLE comments ( PRIMARY KEY (cid) ); -CREATE TABLE cron ( - module varchar(255) DEFAULT '' NOT NULL, +CREATE TABLE crons ( + module varchar(64) DEFAULT '' NOT NULL, scheduled int(11), timestamp int(11), PRIMARY KEY (module) @@ -50,15 +76,6 @@ CREATE TABLE diaries ( PRIMARY KEY (id) ); -CREATE TABLE droplets ( - id tinyint(4) DEFAULT '0' NOT NULL auto_increment, - name varchar(255) DEFAULT '' NOT NULL, - help text NOT NULL, - code text NOT NULL, - UNIQUE name (name), - PRIMARY KEY (id) -); - CREATE TABLE headlines ( id int(11) DEFAULT '0' NOT NULL, title varchar(255) DEFAULT '' NOT NULL, @@ -68,6 +85,17 @@ CREATE TABLE headlines ( UNIQUE link (link) ); +CREATE TABLE layout ( + user int(11) DEFAULT '0' NOT NULL, + block varchar(64) DEFAULT '' NOT NULL, + weight int(11) DEFAULT '0' NOT NULL +); + +CREATE TABLE modules ( + name varchar(64) DEFAULT '' NOT NULL, + PRIMARY KEY (name) +); + CREATE TABLE stories ( id int(11) DEFAULT '0' NOT NULL auto_increment, author int(6) DEFAULT '0' NOT NULL,