Debian Codegraph @

maintenance/archives/patch-pagelinks-target_id.sql

raw
1 -- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
2 -- Source: maintenance/abstractSchemaChanges/patch-pagelinks-target_id.json
3 -- Do not modify this file directly.
4 -- See https://www.mediawiki.org/wiki/Manual:Schema_changes
5 ALTER TABLE /*_*/pagelinks
6 ADD pl_target_id BIGINT UNSIGNED DEFAULT NULL;
7 CREATE INDEX pl_target_id ON /*_*/pagelinks (pl_target_id, pl_from);
8 CREATE INDEX pl_backlinks_namespace_target_id ON /*_*/pagelinks ( pl_from_namespace, pl_target_id, pl_from );