X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/55cb3025c5506ec7faaa1818a4d8161aaad19c27..9c21cd6f446eccf22be5bd4e4075255e9a614c2d:/widget/comments.sql diff --git a/widget/comments.sql b/widget/comments.sql index 5e33716..2a4993b 100644 --- a/widget/comments.sql +++ b/widget/comments.sql @@ -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 +);