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

DROP INDEX pl_backlinks_namespace ON /*_*/pagelinks;

DROP INDEX `primary` ON /*_*/pagelinks;

ALTER TABLE /*_*/pagelinks
  DROP pl_namespace,
  DROP pl_title,
  CHANGE pl_target_id pl_target_id BIGINT UNSIGNED NOT NULL;

ALTER TABLE /*_*/pagelinks
  ADD PRIMARY KEY (pl_from, pl_target_id);
