| 1 |
-- This file is automatically generated using maintenance/generateSchemaSql.php. |
| 2 |
-- Source: sql/discussiontools_persistent.json |
| 3 |
-- Do not modify this file directly. |
| 4 |
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes |
| 5 |
CREATE TABLE /*_*/discussiontools_items ( |
| 6 |
it_id INT UNSIGNED AUTO_INCREMENT NOT NULL, |
| 7 |
it_itemname VARBINARY(255) NOT NULL, |
| 8 |
it_timestamp BINARY(14) DEFAULT NULL, |
| 9 |
it_actor BIGINT UNSIGNED DEFAULT NULL, |
| 10 |
UNIQUE INDEX it_itemname (it_itemname), |
| 11 |
PRIMARY KEY(it_id) |
| 12 |
) /*$wgDBTableOptions*/; |
| 13 |
|
| 14 |
|
| 15 |
CREATE TABLE /*_*/discussiontools_item_ids ( |
| 16 |
itid_id INT UNSIGNED AUTO_INCREMENT NOT NULL, |
| 17 |
itid_itemid VARBINARY(255) NOT NULL, |
| 18 |
UNIQUE INDEX itid_itemid (itid_itemid), |
| 19 |
PRIMARY KEY(itid_id) |
| 20 |
) /*$wgDBTableOptions*/; |
| 21 |
|
| 22 |
|
| 23 |
CREATE TABLE /*_*/discussiontools_item_pages ( |
| 24 |
itp_id INT UNSIGNED AUTO_INCREMENT NOT NULL, |
| 25 |
itp_items_id INT UNSIGNED NOT NULL, |
| 26 |
itp_page_id BIGINT UNSIGNED NOT NULL, |
| 27 |
itp_oldest_revision_id BIGINT UNSIGNED NOT NULL, |
| 28 |
itp_newest_revision_id BIGINT UNSIGNED NOT NULL, |
| 29 |
UNIQUE INDEX itp_items_id_page_id (itp_items_id, itp_page_id), |
| 30 |
UNIQUE INDEX itp_items_id_newest_revision_id ( |
| 31 |
itp_items_id, itp_newest_revision_id |
| 32 |
), |
| 33 |
PRIMARY KEY(itp_id) |
| 34 |
) /*$wgDBTableOptions*/; |
| 35 |
|
| 36 |
|
| 37 |
CREATE TABLE /*_*/discussiontools_item_revisions ( |
| 38 |
itr_id INT UNSIGNED AUTO_INCREMENT NOT NULL, |
| 39 |
itr_itemid_id INT NOT NULL, |
| 40 |
itr_revision_id BIGINT UNSIGNED NOT NULL, |
| 41 |
itr_items_id INT NOT NULL, |
| 42 |
itr_parent_id INT DEFAULT NULL, |
| 43 |
itr_transcludedfrom BIGINT UNSIGNED DEFAULT NULL, |
| 44 |
itr_level TINYINT NOT NULL, |
| 45 |
itr_headinglevel TINYINT DEFAULT NULL, |
| 46 |
INDEX itr_revision_id (itr_revision_id), |
| 47 |
UNIQUE INDEX itr_itemid_id_revision_id (itr_itemid_id, itr_revision_id), |
| 48 |
PRIMARY KEY(itr_id) |
| 49 |
) /*$wgDBTableOptions*/; |