aboutsummaryrefslogtreecommitdiffstats
path: root/sql/postgres/patch-externallinks-el_to_path.sql
blob: ec34e4fd2db8d53697a4ee1c53496d946095a1c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
-- Source: sql/abstractSchemaChanges/patch-externallinks-el_to_path.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
DROP INDEX el_from;
ALTER TABLE externallinks
  ADD el_to_domain_index TEXT DEFAULT '' NOT NULL;
ALTER TABLE externallinks
  ADD el_to_path TEXT DEFAULT NULL;

CREATE INDEX el_to_domain_index_to_path ON externallinks (el_to_domain_index, el_to_path);

CREATE INDEX el_from ON externallinks (el_from);