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