X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/7f191935501429b51d0b220ba32eda8b3a747655..170f16e2dd3a643423ea3681bf4ea42d320e1cf4:/widget/comments.sql

diff --git a/widget/comments.sql b/widget/comments.sql
index 5408877..3dc9f07 100644
--- a/widget/comments.sql
+++ b/widget/comments.sql
@@ -1,10 +1,13 @@
 CREATE TABLE issues (
 	page       text        NOT NULL DEFAULT 'issue',
+	link       text,
 	subject    text,
 	body       text,
 	created    timestamptz          DEFAULT now(),
-	closed     timestamptz          DEFAULT now(),
+	closed     timestamptz,
+	updated    timestamptz NOT NULL DEFAULT now(),
 	author     text,
+	assign     text,
 	id         serial      NOT NULL PRIMARY KEY
 );
 
@@ -15,3 +18,12 @@ CREATE TABLE comments (
 	author     text,
 	id         serial      NOT NULL PRIMARY KEY
 );
+
+CREATE TABLE journal (
+	comment_id integer     NOT NULL REFERENCES comments (id),
+	property   text        NOT NULL DEFAULT 'attr',
+	col        text        NOT NULL,
+	old_value  text,
+	value      text,
+	id         serial      NOT NULL PRIMARY KEY
+);
