Page MenuHomePhabricator

Update gb_id to be unsigned in the globalblocks table on WMF production
Closed, ResolvedPublic

Description

Deployment of T381877: Older wikis with GlobalBlocking installed have an incorrect type for gb_id to WMF wikis

  1. ALTERs to run: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GlobalBlocking/+/1148847/2/sql/mysql/patch-globalblocks-modify-gb_id-unsigned.sql
  2. Where to run those changes: centralauth DB only
  3. When to run those changes: At any time
  4. If the schema change is backwards compatible: Yes
  5. If the schema change has been tested already on some of the test/beta wikis: beta cluster is running with the new schema
  6. if the data should be made available on the labs replicas and/or dumps: no change of the existing rules

Event Timeline

Mentioned in SAL (#wikimedia-operations) [2025-05-27T14:34:32Z] <marostegui> Deploy schema change on s7 eqiad dbmaint T395333

Done on the master with replication

cumin2024@db1236.eqiad.wmnet[centralauth]> ALTER TABLE /*_*/globalblocks
    ->   CHANGE gb_id gb_id INT UNSIGNED AUTO_INCREMENT NOT NULL;
Query OK, 63485 rows affected (1.322 sec)
Records: 63485  Duplicates: 0  Warnings: 0

Thanks for the quick deployment!