wiki.techinc.nl/maintenance/postgres/archives/patch-comment-table.sql
Reedy c00c34f288 Split down patch-comment-table.sql
Bug: T227662
Change-Id: I7617616df57f7468d06e9b52426b6851bfef0e7d
2019-08-20 19:35:57 +00:00

13 lines
356 B
SQL

--
-- patch-comment-table.sql
--
-- T166732. Add a `comment` table
CREATE SEQUENCE comment_comment_id_seq;
CREATE TABLE comment (
comment_id INTEGER NOT NULL PRIMARY KEY DEFAULT nextval('comment_comment_id_seq'),
comment_hash INTEGER NOT NULL,
comment_text TEXT NOT NULL,
comment_data TEXT
);
CREATE INDEX comment_hash ON comment (comment_hash);