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

6 lines
255 B
SQL

CREATE TABLE image_comment_temp (
imgcomment_name TEXT NOT NULL,
imgcomment_description_id INTEGER NOT NULL,
PRIMARY KEY (imgcomment_name, imgcomment_description_id)
);
CREATE UNIQUE INDEX imgcomment_name ON image_comment_temp (imgcomment_name);