issue: reply option to mark announced publication
[minimedit.git] / widget / comments.sql
index a1520793c06a2ff121f3b7bb8e9304e64e466c00..fc261f82ae0c41f7ffd0416610876e5dfdd40cc0 100644 (file)
@@ -2,7 +2,6 @@ CREATE TABLE issues (
        page       text        NOT NULL DEFAULT 'issue',
        link       text,
        subject    text,
-       body       text,
        created    timestamptz          DEFAULT now(),
        closed     timestamptz,
        updated    timestamptz NOT NULL DEFAULT now(),
@@ -15,6 +14,7 @@ CREATE TABLE comments (
        page       text,
        raw        text,
        message    text,
+       announced  boolean     NOT NULL DEFAULT TRUE,
        created    timestamptz DEFAULT now(),
        author     text,
        id         serial      NOT NULL PRIMARY KEY
@@ -31,6 +31,4 @@ CREATE TABLE journal (
 
 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
 );