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: store main description as comment row
[minimedit.git]
/
widget
/
comments.sql
diff --git
a/widget/comments.sql
b/widget/comments.sql
index 3dc9f07e95f58be22671d2dcb01ab8d041a2af74..b805a2a33a6fdd89082ddebf6889560b4cffbd34 100644
(file)
--- a/
widget/comments.sql
+++ b/
widget/comments.sql
@@
-2,7
+2,6
@@
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(),
closed timestamptz,
updated timestamptz NOT NULL DEFAULT now(),
created timestamptz DEFAULT now(),
closed timestamptz,
updated timestamptz NOT NULL DEFAULT now(),
@@
-13,6
+12,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
+27,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
+);