Similar to templatelinks Bug: T342689 Change-Id: I2ed692d7d0cdf756d29618363bec7fc761ff3df1
8 lines
No EOL
523 B
SQL
8 lines
No EOL
523 B
SQL
-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
|
|
-- Source: maintenance/abstractSchemaChanges/patch-pagelinks-target_id.json
|
|
-- Do not modify this file directly.
|
|
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
|
|
ALTER TABLE /*_*/pagelinks
|
|
ADD pl_target_id BIGINT UNSIGNED DEFAULT NULL;
|
|
CREATE INDEX pl_target_id ON /*_*/pagelinks (pl_target_id, pl_from);
|
|
CREATE INDEX pl_backlinks_namespace_target_id ON /*_*/pagelinks ( pl_from_namespace, pl_target_id, pl_from ); |