auth: create user object regardless of login
[minimedit.git] / widget / comments.sql
index 924c136e3a385d9d489d62f3cd92e155dedad69b..3dc9f07e95f58be22671d2dcb01ab8d041a2af74 100644 (file)
@@ -4,9 +4,10 @@ CREATE TABLE issues (
        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
 );
 
@@ -17,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
+);