wiki.techinc.nl/maintenance/archives/patch-pagelinks-drop-pl_title.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
596 B
MySQL
Raw Normal View History

-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
-- Source: maintenance/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);