mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-18 19:12:16 +00:00
5b8646f73f
Bug: T264885 Change-Id: I92d0362eac80ae1ae70839e26e2c084003862a5f
21 lines
811 B
SQL
21 lines
811 B
SQL
-- This file is automatically generated using maintenance/generateSchemaSql.php.
|
|
-- Source: sql/discussiontools_subscription.json
|
|
-- Do not modify this file directly.
|
|
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
|
|
CREATE TABLE discussiontools_subscription (
|
|
sub_id SERIAL NOT NULL,
|
|
sub_item VARCHAR(255) NOT NULL,
|
|
sub_namespace INT DEFAULT 0 NOT NULL,
|
|
sub_title VARCHAR(255) NOT NULL,
|
|
sub_section VARCHAR(255) NOT NULL,
|
|
sub_state INT DEFAULT 1 NOT NULL,
|
|
sub_user INT NOT NULL,
|
|
sub_created TIMESTAMPTZ NOT NULL,
|
|
sub_notified TIMESTAMPTZ DEFAULT NULL,
|
|
PRIMARY KEY(sub_id)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX discussiontools_subscription_itemuser ON discussiontools_subscription (sub_item, sub_user);
|
|
|
|
CREATE INDEX discussiontools_subscription_user ON discussiontools_subscription (sub_user);
|