Commit 470dc5c0 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix visible_comments view definition.

parent a9aacea8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ CREATE TABLE readings (
    FOREIGN KEY (comment_id) REFERENCES comments (id)
);

CREATE VIEW visible_comments AS SELECT * FROM comments WHERE deleted = 'N';
CREATE VIEW visible_comments AS SELECT * FROM comments WHERE deleted = 0;

CREATE VIEW voted_comments AS SELECT
    c.*,