reply: omit header from mandatory output
[minimedit.git] / widget / comments.sql
index 5e33716da32f7843e95e441c797e0ee36fb9543c..2a4993b056eb5062d7bfd0e7a10f7301493a394e 100644 (file)
@@ -5,7 +5,9 @@ CREATE TABLE issues (
        body       text,
        created    timestamptz          DEFAULT now(),
        closed     timestamptz          DEFAULT now(),
+       updated    timestamptz NOT NULL DEFAULT now(),
        author     text,
+       assign     text,
        id         serial      NOT NULL PRIMARY KEY
 );
 
@@ -16,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
+);