git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
widget/reply: formatting syntax for *bold*
[minimedit.git]
/
widget
/
comments.sql
diff --git
a/widget/comments.sql
b/widget/comments.sql
index 3dc9f07e95f58be22671d2dcb01ab8d041a2af74..a1520793c06a2ff121f3b7bb8e9304e64e466c00 100644
(file)
--- a/
widget/comments.sql
+++ b/
widget/comments.sql
@@
-13,6
+13,7
@@
CREATE TABLE issues (
CREATE TABLE comments (
page text,
CREATE TABLE comments (
page text,
+ raw text,
message text,
created timestamptz DEFAULT now(),
author text,
message text,
created timestamptz DEFAULT now(),
author text,
@@
-27,3
+28,9
@@
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
+ UNION ALL
+ SELECT concat(page,'/',id), body, created, author, NULL, id FROM issues
+);