wiki.techinc.nl/maintenance/archives/patch-externallinks-el_to_path.sql
Amir Sarabadani 080c70879a schema: Add new fields for externallinks so we can reduce duplication
Bug: T318604
Change-Id: I217817bc518eaa86c9952187c6f1a861f480ccaf
2022-10-18 16:18:54 +00:00

10 lines
No EOL
600 B
SQL

-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
-- Source: maintenance/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 ON /*_*/externallinks;
ALTER TABLE /*_*/externallinks
ADD el_to_domain_index VARBINARY(255) DEFAULT '' NOT NULL,
ADD el_to_path BLOB DEFAULT NULL;
CREATE INDEX el_to_domain_index_to_path ON /*_*/externallinks ( el_to_domain_index, el_to_path(60) );
CREATE INDEX el_from ON /*_*/externallinks (el_from);