-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
-- Source: sql/abstractSchemaChanges/patch-categorylinks-pk.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
DROP INDEX `primary` ON /*_*/categorylinks;

ALTER TABLE /*_*/categorylinks
  CHANGE cl_target_id cl_target_id BIGINT UNSIGNED NOT NULL;

ALTER TABLE /*_*/categorylinks
  ADD PRIMARY KEY (cl_from, cl_target_id);
