Commit 49a7dccb authored by Dries's avatar Dries

- make the version CVS function a bit better
parent 9505251f
......@@ -18,13 +18,6 @@ function node_get_array($field, $value) {
return db_fetch_array(_node_get($field, $value));
}
function node_get_category($nid) {
db_fetch_array(db_query("SELECT FROM"));
}
function node_get_topic($nid) {
}
function node_del($field, $value) {
global $status;
if ($node = node_get_object($field, $value)) {
......
# 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;
CREATE TABLE category (
cid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
name varchar(32) DEFAULT '' NOT NULL,
......@@ -20,40 +23,6 @@ CREATE TABLE topic (
PRIMARY KEY (tid)
);
CREATE TABLE node_category (
cid int(10) unsigned DEFAULT '0' NOT NULL,
nid int(10) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (cid, nid)
);
CREATE TABLE node_topic (
tid int(10) unsigned DEFAULT '0' NOT NULL,
nid int(10) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (tid, nid)
);
///// revise
CREATE TABLE section (
sid 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 (sid)
);
CREATE TABLE section_type (
sid int(10) unsigned DEFAULT '0' NOT NULL,
type varchar(16) DEFAULT '' NOT NULL,
PRIMARY KEY (sid, type)
);
CREATE TABLE section_node (
sid int(10) unsigned DEFAULT '0' NOT NULL,
nid int(10) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (sid, nid)
);
# 07/04/2001:
CREATE TABLE page (
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
......
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