X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fpostgres%2Farchives%2Fpatch-comment-table.sql;h=4b91815d0b3dccba382d760bbc4ecf9e15b1f5d1;hp=243a3b31447441f72223b5556669601569db57ca;hb=c00c34f288c13b5360e30c694d929e4c65e3a3a1;hpb=732b5e2745ca8f6153e19cc10c3c9acb1b2a6331 diff --git a/maintenance/postgres/archives/patch-comment-table.sql b/maintenance/postgres/archives/patch-comment-table.sql index 243a3b3144..4b91815d0b 100644 --- a/maintenance/postgres/archives/patch-comment-table.sql +++ b/maintenance/postgres/archives/patch-comment-table.sql @@ -1,7 +1,7 @@ -- -- patch-comment-table.sql -- --- T166732. Add a `comment` table, and temporary tables to reference it. +-- T166732. Add a `comment` table CREATE SEQUENCE comment_comment_id_seq; CREATE TABLE comment ( @@ -11,17 +11,3 @@ CREATE TABLE comment ( comment_data TEXT ); CREATE INDEX comment_hash ON comment (comment_hash); - -CREATE TABLE revision_comment_temp ( - revcomment_rev INTEGER NOT NULL, - revcomment_comment_id INTEGER NOT NULL, - PRIMARY KEY (revcomment_rev, revcomment_comment_id) -); -CREATE UNIQUE INDEX revcomment_rev ON revision_comment_temp (revcomment_rev); - -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);