1 -- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
2 -- Source: maintenance/abstractSchemaChanges/patch-ipblocks_restrictions-ir_ipb_id.json
3 -- Do not modify this file directly.
4 -- See https://www.mediawiki.org/wiki/Manual:Schema_changes
5 DROP INDEX ir_type_value;
6 CREATE TEMPORARY TABLE /*_*/__temp__ipblocks_restrictions AS
7 SELECT ir_ipb_id, ir_type, ir_value
8 FROM /*_*/ipblocks_restrictions;
9 DROP TABLE /*_*/ipblocks_restrictions;
10 CREATE TABLE /*_*/ipblocks_restrictions ( ir_ipb_id INTEGER UNSIGNED NOT NULL, ir_type SMALLINT NOT NULL, ir_value INTEGER UNSIGNED NOT NULL, PRIMARY KEY(ir_ipb_id, ir_type, ir_value) );
11 INSERT INTO /*_*/ipblocks_restrictions (ir_ipb_id, ir_type, ir_value)
12 SELECT ir_ipb_id, ir_type, ir_value
13 FROM /*_*/__temp__ipblocks_restrictions;
14 DROP TABLE /*_*/__temp__ipblocks_restrictions;
15 CREATE INDEX ir_type_value ON /*_*/ipblocks_restrictions (ir_type, ir_value);