-- This file is automatically generated using maintenance/generateSchemaSql.php.
-- Source: repo/sql/abstract/wb_changes_subscription.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
CREATE TABLE wb_changes_subscription (
  cs_row_id BIGSERIAL NOT NULL,
  cs_entity_id TEXT NOT NULL,
  cs_subscriber_id TEXT NOT NULL,
  PRIMARY KEY(cs_row_id)
);

CREATE UNIQUE INDEX cs_entity_id ON wb_changes_subscription (cs_entity_id, cs_subscriber_id);

CREATE INDEX cs_subscriber_id ON wb_changes_subscription (cs_subscriber_id);
