Commit 83f6495c authored by Dries's avatar Dries

- Jeroen: here are the correct and up-to-date database tables!

parent 5c44a206
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,
......
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