2001-04-22 16:33:28 +00:00
|
|
|
# 01/04/2001:
|
|
|
|
CREATE TABLE access (
|
|
|
|
id tinyint(10) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
mask varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
reason text NOT NULL,
|
|
|
|
UNIQUE mask (mask),
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
2001-04-16 08:36:25 +00:00
|
|
|
|
2001-04-22 16:33:28 +00:00
|
|
|
CREATE TABLE book (
|
|
|
|
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
body text NOT NULL,
|
|
|
|
section int(10) DEFAULT '0' NOT NULL,
|
|
|
|
parent int(10) DEFAULT '0' NOT NULL,
|
|
|
|
weight tinyint(3) DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (lid)
|
2001-04-18 20:40:21 +00:00
|
|
|
);
|
|
|
|
|
2001-04-22 16:33:28 +00:00
|
|
|
CREATE TABLE story (
|
|
|
|
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
abstract text NOT NULL,
|
|
|
|
body text NOT NULL,
|
|
|
|
section varchar(64) DEFAULT '' NOT NULL,
|
|
|
|
PRIMARY KEY (lid)
|
|
|
|
);
|
2001-04-19 18:59:10 +00:00
|
|
|
|
2001-04-22 16:33:28 +00:00
|
|
|
CREATE TABLE node (
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
lid int(10) DEFAULT '0' NOT NULL,
|
|
|
|
pid int(10) DEFAULT '0' NOT NULL,
|
|
|
|
log text NOT NULL,
|
2001-04-15 17:01:32 +00:00
|
|
|
type varchar(16) DEFAULT '' NOT NULL,
|
2001-04-22 16:33:28 +00:00
|
|
|
title varchar(128) DEFAULT '' NOT NULL,
|
|
|
|
score int(11) DEFAULT '0' NOT NULL,
|
|
|
|
votes int(11) DEFAULT '0' NOT NULL,
|
|
|
|
author int(6) DEFAULT '0' NOT NULL,
|
|
|
|
status int(4) DEFAULT '1' NOT NULL,
|
|
|
|
timestamp int(11) NOT NULL,
|
|
|
|
KEY type (lid, type),
|
|
|
|
KEY author (author),
|
|
|
|
KEY title (title, type),
|
|
|
|
PRIMARY KEY (nid)
|
2001-04-15 17:01:32 +00:00
|
|
|
);
|
|
|
|
|
2001-04-22 16:33:28 +00:00
|
|
|
alter table users change stories nodes tinyint(2) DEFAULT '10';
|
|
|
|
alter table comments drop link;
|
2001-04-15 17:01:32 +00:00
|
|
|
|
2001-04-07 15:02:28 +00:00
|
|
|
# 07/04/2001:
|
|
|
|
CREATE TABLE page (
|
|
|
|
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
body text NOT NULL,
|
|
|
|
format tinyint(2) DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (lid)
|
|
|
|
);
|
|
|
|
|
2001-04-05 20:33:36 +00:00
|
|
|
CREATE TABLE variable (
|
|
|
|
name varchar(32) DEFAULT '' NOT NULL,
|
2001-04-15 17:01:32 +00:00
|
|
|
value text DEFAULT '' NOT NULL,
|
2001-04-05 20:33:36 +00:00
|
|
|
PRIMARY KEY (name)
|
|
|
|
);
|
|
|
|
|
2001-04-07 20:00:21 +00:00
|
|
|
CREATE TABLE rating (
|
|
|
|
user int(6) DEFAULT '0' NOT NULL,
|
|
|
|
new int(6) DEFAULT '0' NOT NULL,
|
|
|
|
old int(6) DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (user)
|
|
|
|
);
|
|
|
|
|
2001-04-06 14:14:16 +00:00
|
|
|
CREATE TABLE watchdog (
|
|
|
|
id int(5) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
user int(6) DEFAULT '0' NOT NULL,
|
|
|
|
type varchar(16) DEFAULT '' NOT NULL,
|
|
|
|
link varchar(16) DEFAULT '' NOT NULL,
|
|
|
|
message varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
location varchar(128) DEFAULT '' NOT NULL,
|
|
|
|
hostname varchar(128) DEFAULT '' NOT NULL,
|
|
|
|
timestamp int(11) DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
2001-04-07 20:00:21 +00:00
|
|
|
ALTER TABLE users CHANGE rating rating decimal(8,2);
|
|
|
|
|
2001-04-22 16:33:28 +00:00
|
|
|
# 14/04/2001:
|
|
|
|
ALTER TABLE node ADD cid int(10) unsigned DEFAULT '0' NOT NULL;
|
|
|
|
ALTER TABLE node ADD tid int(10) unsigned DEFAULT '0' NOT NULL;
|
|
|
|
ALTER TABLE story DROP section;
|
|
|
|
ALTER TABLE comments ADD KEY(lid);
|
2001-04-02 15:54:37 +00:00
|
|
|
|
2001-04-22 16:33:28 +00:00
|
|
|
CREATE TABLE category (
|
|
|
|
cid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
name varchar(32) DEFAULT '' NOT NULL,
|
|
|
|
type varchar(16) DEFAULT '' NOT NULL,
|
|
|
|
post int(3) DEFAULT '0' NOT NULL,
|
|
|
|
dump int(3) DEFAULT '0' NOT NULL,
|
|
|
|
expire int(3) DEFAULT '0' NOT NULL,
|
|
|
|
comment int(2) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
submission int(2) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
UNIQUE (name),
|
|
|
|
PRIMARY KEY (cid)
|
2001-04-02 15:54:37 +00:00
|
|
|
);
|
|
|
|
|
2001-04-22 16:33:28 +00:00
|
|
|
CREATE TABLE topic (
|
|
|
|
tid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
pid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
name varchar(32) DEFAULT '' NOT NULL,
|
|
|
|
UNIQUE (name),
|
|
|
|
PRIMARY KEY (tid)
|
2001-03-25 11:25:30 +00:00
|
|
|
);
|
|
|
|
|
2001-04-22 16:33:28 +00:00
|
|
|
# 19/04/2001:
|
|
|
|
ALTER TABLE node ADD comment int(2) DEFAULT '1' NOT NULL;
|
|
|
|
ALTER TABLE node ADD promote int(2) DEFAULT '1' NOT NULL;
|
|
|
|
ALTER TABLE category ADD promote int(2) unsigned DEFAULT '0' NOT NULL;
|
2001-03-25 11:25:30 +00:00
|
|
|
|
2001-04-22 16:33:28 +00:00
|
|
|
CREATE TABLE cvs (
|
|
|
|
user varchar(32) DEFAULT '' NOT NULL,
|
|
|
|
files text,
|
|
|
|
status int(2) DEFAULT '0' NOT NULL,
|
|
|
|
message text,
|
|
|
|
timestamp int(11) DEFAULT '0' NOT NULL
|
2001-03-25 11:25:30 +00:00
|
|
|
);
|
2001-04-29 10:03:21 +00:00
|
|
|
|
|
|
|
# 27/04/2001:
|
|
|
|
CREATE TABLE forum (
|
|
|
|
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
body text NOT NULL,
|
|
|
|
PRIMARY KEY (lid)
|
|
|
|
);
|
2001-05-02 20:52:19 +00:00
|
|
|
|
|
|
|
# 01/05/2001:
|
2001-05-10 19:47:35 +00:00
|
|
|
ALTER TABLE node ADD moderate TEXT NOT NULL;
|
|
|
|
|
|
|
|
# 10/05/2001:
|
|
|
|
ALTER TABLE topic ADD moderate TEXT NOT NULL;
|
2001-05-16 20:54:37 +00:00
|
|
|
|
|
|
|
# 16/05/2001
|
|
|
|
ALTER TABLE node ADD users TEXT NOT NULL;
|
|
|
|
ALTER TABLE comments ADD users TEXT NOT NULL;
|
|
|
|
ALTER TABLE users DROP history;
|
2001-05-19 13:41:52 +00:00
|
|
|
|
|
|
|
# 19/05/2001
|
|
|
|
DROP TABLE crons;
|
2001-05-25 16:03:02 +00:00
|
|
|
|
|
|
|
# 25/05/2001 - TEMPORARY - UNDER HEAVY CHANGE -
|
|
|
|
|
|
|
|
CREATE TABLE entry (
|
|
|
|
eid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
name varchar(32) DEFAULT '' NOT NULL,
|
|
|
|
keyword varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
collection varchar(32) DEFAULT '' NOT NULL,
|
- Rewrote the headline module from scratch. Note that the old
headline code is still in place 'till the new code has proven
to be stable. See "syndication.module" for the new code.
Changes:
+ Improved the parser and tested it against RSS 0.9, RSS 0.91,
RSS 0.92, RSS 1.0, RDF and XML feeds.
+ Improved the administration interface. It might be a bit fuzzy
at first. Maybe some native English like Julian, Michael (or any
one else with knowledge in the field) can help out by suggesting
better naming, terminology or descriptions - as well as by
writing the help section for this module? I'd have no idea how
much this would be appreciated.
+ We can *easily* recognize new tags or extensions: we parse out
"link", "title", "description" and "author" right now, but we
will have to revise which tags to support and which not. New
tags can be added in less than 10 minutes (if you are familiar
with the code). Read: we have something we can build on.
+ Within each item, tags can now appear is random order which is
or was not the case with the old headline code where we expect
<link>s prior to <description>s for example.
+ Feed updates only (ie. always) happen through cron. Neither do
we use one global cron for updating all feeds; instead, every
feed can specify his own update-interval.
+ Newly fetched headlines are "appended" to the pool of existing
headlines (read: we don't replace the whole feed), and headlines
automatically "expire" after x days or hours. (Every headline
has a timestamp.)
+ Got rid of backend.class; it is integrated in the module.
+ Switched to more generic names: "headline" became "item" and
"backend" became "feed". This should ease future non-headline
oriented syndication.
+ You can associate attributes or keyword lists with every feed.
At the moment new items will automatically inherit their feeds
attributes but in future we can use heuristics to make these
attributes "mutate" when and where we see fit. The attributes
can be maintained by hand as well.
+ We don't export any blocks yet; we will soon do as soon this
new code has been tested for a bit more. We will only export
bundles though so if you want to export by feed/source, you
will have to make a source-specific bundle.
- Polished a bit on a few other modules: nothing major.
2001-05-26 18:26:56 +00:00
|
|
|
UNIQUE name (name, collection),
|
2001-05-25 16:03:02 +00:00
|
|
|
PRIMARY KEY (eid)
|
|
|
|
);
|
- Rewrote the headline module from scratch. Note that the old
headline code is still in place 'till the new code has proven
to be stable. See "syndication.module" for the new code.
Changes:
+ Improved the parser and tested it against RSS 0.9, RSS 0.91,
RSS 0.92, RSS 1.0, RDF and XML feeds.
+ Improved the administration interface. It might be a bit fuzzy
at first. Maybe some native English like Julian, Michael (or any
one else with knowledge in the field) can help out by suggesting
better naming, terminology or descriptions - as well as by
writing the help section for this module? I'd have no idea how
much this would be appreciated.
+ We can *easily* recognize new tags or extensions: we parse out
"link", "title", "description" and "author" right now, but we
will have to revise which tags to support and which not. New
tags can be added in less than 10 minutes (if you are familiar
with the code). Read: we have something we can build on.
+ Within each item, tags can now appear is random order which is
or was not the case with the old headline code where we expect
<link>s prior to <description>s for example.
+ Feed updates only (ie. always) happen through cron. Neither do
we use one global cron for updating all feeds; instead, every
feed can specify his own update-interval.
+ Newly fetched headlines are "appended" to the pool of existing
headlines (read: we don't replace the whole feed), and headlines
automatically "expire" after x days or hours. (Every headline
has a timestamp.)
+ Got rid of backend.class; it is integrated in the module.
+ Switched to more generic names: "headline" became "item" and
"backend" became "feed". This should ease future non-headline
oriented syndication.
+ You can associate attributes or keyword lists with every feed.
At the moment new items will automatically inherit their feeds
attributes but in future we can use heuristics to make these
attributes "mutate" when and where we see fit. The attributes
can be maintained by hand as well.
+ We don't export any blocks yet; we will soon do as soon this
new code has been tested for a bit more. We will only export
bundles though so if you want to export by feed/source, you
will have to make a source-specific bundle.
- Polished a bit on a few other modules: nothing major.
2001-05-26 18:26:56 +00:00
|
|
|
|
|
|
|
CREATE TABLE bundle (
|
|
|
|
bid int(11) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
title varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
attribute varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
UNIQUE (title),
|
|
|
|
PRIMARY KEY (bid)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE feed (
|
|
|
|
fid int(11) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
title varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
link varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
refresh int(11),
|
|
|
|
uncache int(11),
|
|
|
|
timestamp int(11),
|
|
|
|
attribute varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
UNIQUE (title),
|
|
|
|
UNIQUE (link),
|
|
|
|
PRIMARY KEY (fid)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE item (
|
|
|
|
iid int(11) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
fid int(11) DEFAULT '0' NOT NULL,
|
|
|
|
title varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
link varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
author varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
description TEXT DEFAULT '' NOT NULL,
|
|
|
|
timestamp int(11),
|
|
|
|
attribute varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
PRIMARY KEY (iid)
|
|
|
|
);
|
2001-05-31 18:22:00 +00:00
|
|
|
|
2001-06-02 22:12:35 +00:00
|
|
|
# 31/05/01
|
2001-05-31 18:22:00 +00:00
|
|
|
|
|
|
|
CREATE TABLE poll (
|
|
|
|
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
runtime int(10) DEFAULT '0' NOT NULL,
|
|
|
|
voters text NOT NULL,
|
|
|
|
active int(2) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (lid)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE poll_choices (
|
|
|
|
chid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
chtext varchar(128) DEFAULT '' NOT NULL,
|
|
|
|
chvotes int(6) DEFAULT '0' NOT NULL,
|
|
|
|
chorder int(2) DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (chid)
|
|
|
|
);
|
|
|
|
|