summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-03-02 19:15:52 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-03-02 19:15:52 +0100
commitfd87dbade6aee9c8c69a3a3ae65758fb71e87118 (patch)
treed04525fa140522dbcc93595ebc174ea32cacf294 /schema.sql
parent2f6bd466afd2463b96e2b1c8047c63054155b727 (diff)
Database schema: Add more metadata to comments.
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql23
1 files changed, 13 insertions, 10 deletions
diff --git a/schema.sql b/schema.sql
index f8faadd..8c2287d 100644
--- a/schema.sql
+++ b/schema.sql
@@ -65,8 +65,9 @@ CREATE TABLE article_aliases(
);
CREATE TABLE comments(
- id SERIAL NOT NULL,
- article INTEGER NOT NULL,
+ id SERIAL NOT NULL,
+ article INTEGER NOT NULL,
+ global_id VARCHAR,
PRIMARY KEY (id),
FOREIGN KEY (article) REFERENCES articles
);
@@ -106,14 +107,16 @@ CREATE TABLE article_revision_parenthood(
);
CREATE TABLE comment_revisions(
- id SERIAL NOT NULL,
- comment INTEGER NOT NULL,
- date TIMESTAMP DEFAULT now(),
- content VARCHAR NOT NULL,
- author INTEGER,
- format VARCHAR NOT NULL,
- status VARCHAR NOT NULL,
- article_revision INTEGER,
+ id SERIAL NOT NULL,
+ comment INTEGER NOT NULL,
+ date TIMESTAMP DEFAULT now(),
+ content VARCHAR NOT NULL,
+ author INTEGER,
+ submitter_ip INET,
+ submitter_user_agent VARCHAR,
+ format VARCHAR NOT NULL,
+ status VARCHAR NOT NULL,
+ article_revision INTEGER,
PRIMARY KEY (id),
FOREIGN KEY (comment) REFERENCES comments,
FOREIGN KEY (author) REFERENCES users,