diff options
Diffstat (limited to 'sql/mysql/patch-pagelinks-target_id.sql')
-rw-r--r-- | sql/mysql/patch-pagelinks-target_id.sql | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sql/mysql/patch-pagelinks-target_id.sql b/sql/mysql/patch-pagelinks-target_id.sql index 7039e2777f78..25ea05628985 100644 --- a/sql/mysql/patch-pagelinks-target_id.sql +++ b/sql/mysql/patch-pagelinks-target_id.sql @@ -1,8 +1,13 @@ -- This file is automatically generated using maintenance/generateSchemaChangeSql.php. --- Source: maintenance/abstractSchemaChanges/patch-pagelinks-target_id.json +-- Source: sql/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 );
\ No newline at end of file +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 + ); |