-- 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
DROP INDEX `primary` ON /*_*/imagelinks;

ALTER TABLE /*_*/imagelinks
  CHANGE il_target_id il_target_id BIGINT UNSIGNED NOT NULL;

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