-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
-- Source: schema/abstractSchemaChanges/patch-cusi_signal-add-sis_trigger_id.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
ALTER TABLE cusi_signal
  DROP CONSTRAINT cusi_signal_pkey;

ALTER TABLE cusi_signal
  ADD sis_trigger_id BIGINT DEFAULT 0 NOT NULL;

ALTER TABLE cusi_signal
  ADD sis_trigger_type SMALLINT DEFAULT 0 NOT NULL;

ALTER TABLE cusi_signal
  ADD PRIMARY KEY (
  sis_name, sis_value, sis_sic_id, sis_trigger_id,
  sis_trigger_type
);
