wiki.techinc.nl/maintenance/archives/patch-pagelinks-drop-pl_title.sql
Amir Sarabadani bb6c6e4174 schema: Drop old pagelinks columns
It has been dropped in production already.

Bug: T299947
Change-Id: I8ec1e7d9224c81d6494c39c78df9e4bdac38d377
2024-06-18 21:13:38 +02:00

13 lines
596 B
SQL

-- 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);