-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
-- Source: sql/abstractSchemaChanges/patch-imagelinks-pk.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
ALTER TABLE imagelinks
  DROP CONSTRAINT imagelinks_pkey;

ALTER TABLE imagelinks
  ALTER il_target_id
SET
  NOT NULL;

ALTER TABLE imagelinks
  ADD PRIMARY KEY (il_from, il_target_id);
