Debian Codegraph @

maintenance/sqlite/archives/patch-externallinks-drop-el_to.sql

raw
1 -- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
2 -- Source: maintenance/abstractSchemaChanges/patch-externallinks-drop-el_to.json
3 -- Do not modify this file directly.
4 -- See https://www.mediawiki.org/wiki/Manual:Schema_changes
5 CREATE TEMPORARY TABLE /*_*/__temp__externallinks AS
6 SELECT el_id, el_from, el_to_domain_index, el_to_path
7 FROM /*_*/externallinks;
8 DROP TABLE /*_*/externallinks;
9 CREATE TABLE /*_*/externallinks ( el_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, el_from INTEGER UNSIGNED DEFAULT 0 NOT NULL, el_to_domain_index BLOB DEFAULT '' NOT NULL, el_to_path BLOB DEFAULT NULL );
10 INSERT INTO /*_*/externallinks ( el_id, el_from, el_to_domain_index, el_to_path )
11 SELECT el_id, el_from, el_to_domain_index, el_to_path
12 FROM /*_*/__temp__externallinks;
13 DROP TABLE /*_*/__temp__externallinks;
14 CREATE INDEX el_from ON /*_*/externallinks (el_from);
15 CREATE INDEX el_to_domain_index_to_path ON /*_*/externallinks (el_to_domain_index, el_to_path);