mediawiki-extensions-Discus.../sql/postgres/discussiontools_subscription.sql
Bartosz Dziewoński c490dc8164 Change DB column types from "string" to "binary" (VARCHAR to VARBINARY in MySQL)
Per Manuel Arostegui in T263817#7033384.

As I understand, this is just for consistency with tables in MediaWiki
core. Given that all tables are created with "DEFAULT CHARSET=binary"
(as defined in $wgDBTableOptions), there is no difference in behavior
between these two types.

Bug: T263817
Change-Id: I8dabcb45e447e0bf60b119fd4f7d6532147a44fc
2021-04-28 21:54:48 +00:00

21 lines
787 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 TEXT NOT NULL,
sub_namespace INT DEFAULT 0 NOT NULL,
sub_title TEXT NOT NULL,
sub_section TEXT 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);