git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue: reply option to mark announced publication
[minimedit.git]
/
widget
/
comments.sql
diff --git
a/widget/comments.sql
b/widget/comments.sql
index 2a4993b056eb5062d7bfd0e7a10f7301493a394e..fc261f82ae0c41f7ffd0416610876e5dfdd40cc0 100644
(file)
--- a/
widget/comments.sql
+++ b/
widget/comments.sql
@@
-2,9
+2,8
@@
CREATE TABLE issues (
page text NOT NULL DEFAULT 'issue',
link text,
subject text,
page text NOT NULL DEFAULT 'issue',
link text,
subject text,
- body text,
created timestamptz DEFAULT now(),
created timestamptz DEFAULT now(),
- closed timestamptz
DEFAULT now()
,
+ closed timestamptz,
updated timestamptz NOT NULL DEFAULT now(),
author text,
assign text,
updated timestamptz NOT NULL DEFAULT now(),
author text,
assign text,
@@
-13,7
+12,9
@@
CREATE TABLE issues (
CREATE TABLE comments (
page text,
CREATE TABLE comments (
page text,
+ raw text,
message text,
message text,
+ announced boolean NOT NULL DEFAULT TRUE,
created timestamptz DEFAULT now(),
author text,
id serial NOT NULL PRIMARY KEY
created timestamptz DEFAULT now(),
author text,
id serial NOT NULL PRIMARY KEY
@@
-27,3
+28,7
@@
CREATE TABLE journal (
value text,
id serial NOT NULL PRIMARY KEY
);
value text,
id serial NOT NULL PRIMARY KEY
);
+
+CREATE OR REPLACE VIEW messages AS (
+ SELECT *, regexp_replace(page, '.*/', '')::int issue FROM comments
+);