wiki.techinc.nl/maintenance/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

12 lines
330 B
SQL

--
-- patch-comment-table.sql
--
-- T166732. Add a `comment` table.
CREATE TABLE /*_*/comment (
comment_id bigint unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
comment_hash INT NOT NULL,
comment_text BLOB NOT NULL,
comment_data BLOB
) /*$wgDBTableOptions*/;
CREATE INDEX /*i*/comment_hash ON /*_*/comment (comment_hash);