2020-05-09 14:27:42 +00:00
|
|
|
-- This file is automatically generated using maintenance/generateSchemaSql.php.
|
2020-05-10 01:22:24 +00:00
|
|
|
-- Source: maintenance/tables.json
|
2020-05-09 14:27:42 +00:00
|
|
|
-- Do not modify this file directly.
|
|
|
|
|
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
|
2020-05-10 00:36:09 +00:00
|
|
|
CREATE TABLE /*_*/site_identifiers (
|
|
|
|
|
si_type VARBINARY(32) NOT NULL,
|
|
|
|
|
si_key VARBINARY(32) NOT NULL,
|
|
|
|
|
si_site INT UNSIGNED NOT NULL,
|
|
|
|
|
INDEX site_ids_site (si_site),
|
|
|
|
|
INDEX site_ids_key (si_key),
|
|
|
|
|
PRIMARY KEY(si_type, si_key)
|
|
|
|
|
) /*$wgDBTableOptions*/;
|
|
|
|
|
|
2020-05-10 01:57:16 +00:00
|
|
|
CREATE TABLE /*_*/updatelog (
|
|
|
|
|
ul_key VARCHAR(255) NOT NULL,
|
|
|
|
|
ul_value BLOB DEFAULT NULL,
|
|
|
|
|
PRIMARY KEY(ul_key)
|
|
|
|
|
) /*$wgDBTableOptions*/;
|
2020-05-09 19:21:22 +00:00
|
|
|
|
|
|
|
|
CREATE TABLE /*_*/actor (
|
|
|
|
|
actor_id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL,
|
|
|
|
|
actor_user INT UNSIGNED DEFAULT NULL,
|
|
|
|
|
actor_name VARBINARY(255) NOT NULL,
|
|
|
|
|
UNIQUE INDEX actor_user (actor_user),
|
|
|
|
|
UNIQUE INDEX actor_name (actor_name),
|
|
|
|
|
PRIMARY KEY(actor_id)
|
|
|
|
|
) /*$wgDBTableOptions*/;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE /*_*/user_former_groups (
|
|
|
|
|
ufg_user INT UNSIGNED DEFAULT 0 NOT NULL,
|
|
|
|
|
ufg_group VARBINARY(255) DEFAULT '' NOT NULL,
|
|
|
|
|
PRIMARY KEY(ufg_user, ufg_group)
|
|
|
|
|
) /*$wgDBTableOptions*/;
|
2020-07-13 20:07:12 +00:00
|
|
|
|
|
|
|
|
CREATE TABLE /*_*/bot_passwords (
|
|
|
|
|
bp_user INT UNSIGNED NOT NULL,
|
|
|
|
|
bp_app_id VARBINARY(32) NOT NULL,
|
|
|
|
|
bp_password TINYBLOB NOT NULL,
|
|
|
|
|
bp_token BINARY(32) DEFAULT '' NOT NULL,
|
|
|
|
|
bp_restrictions BLOB NOT NULL,
|
|
|
|
|
bp_grants BLOB NOT NULL,
|
|
|
|
|
PRIMARY KEY(bp_user, bp_app_id)
|
|
|
|
|
) /*$wgDBTableOptions*/;
|
2020-07-13 21:09:46 +00:00
|
|
|
|
|
|
|
|
CREATE TABLE /*_*/comment (
|
|
|
|
|
comment_id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL,
|
|
|
|
|
comment_hash INT NOT NULL,
|
|
|
|
|
comment_text BLOB NOT NULL,
|
|
|
|
|
comment_data BLOB DEFAULT NULL,
|
|
|
|
|
INDEX comment_hash (comment_hash),
|
|
|
|
|
PRIMARY KEY(comment_id)
|
|
|
|
|
) /*$wgDBTableOptions*/;
|
2020-07-20 00:15:45 +00:00
|
|
|
|
|
|
|
|
CREATE TABLE /*_*/slots (
|
|
|
|
|
slot_revision_id BIGINT UNSIGNED NOT NULL,
|
|
|
|
|
slot_role_id SMALLINT UNSIGNED NOT NULL,
|
|
|
|
|
slot_content_id BIGINT UNSIGNED NOT NULL,
|
|
|
|
|
slot_origin BIGINT UNSIGNED NOT NULL,
|
|
|
|
|
INDEX slot_revision_origin_role (
|
|
|
|
|
slot_revision_id, slot_origin, slot_role_id
|
|
|
|
|
),
|
|
|
|
|
PRIMARY KEY(slot_revision_id, slot_role_id)
|
|
|
|
|
) /*$wgDBTableOptions*/;
|