It makes it more consistent with AUTO_INCREMENT PRIMARY KEY columns on other tables. This includes ipblocks.ipb_parent_block_id and ipblocks_restrictions.ir_ipb_id as well This patch doesn't apply to Postgres. Bug: T297208 Change-Id: I950aba63b2b226abbaf4010fbb51415bbff117f4
7 lines
No EOL
417 B
SQL
7 lines
No EOL
417 B
SQL
-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
|
|
-- Source: maintenance/abstractSchemaChanges/patch-ipblocks-ipb_id.json
|
|
-- Do not modify this file directly.
|
|
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
|
|
ALTER TABLE /*_*/ipblocks
|
|
CHANGE ipb_id ipb_id INT UNSIGNED AUTO_INCREMENT NOT NULL,
|
|
CHANGE ipb_parent_block_id ipb_parent_block_id INT UNSIGNED DEFAULT NULL; |