Debian Codegraph @

maintenance/postgres/archives/patch-externallinks-el_to_path.sql

raw
1 -- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
2 -- Source: maintenance/abstractSchemaChanges/patch-externallinks-el_to_path.json
3 -- Do not modify this file directly.
4 -- See https://www.mediawiki.org/wiki/Manual:Schema_changes
5 DROP INDEX el_from;
6 ALTER TABLE externallinks
7 ADD el_to_domain_index TEXT DEFAULT '' NOT NULL;
8 ALTER TABLE externallinks
9 ADD el_to_path TEXT DEFAULT NULL;
10 CREATE INDEX el_to_domain_index_to_path ON externallinks (el_to_domain_index, el_to_path);
11 CREATE INDEX el_from ON externallinks (el_from);