Summary
This task is to make the gb_address column in the globalblocks table be VARBINARY
Background
- Per T395669: globalblocks table: SQL in extension and production have different type for gb_address and comments in this task, the gb_address column should have the varbinary type and not the varchar type
- WMF wikis have the column set as varbinary which is correct, but the extension source code has it set as varchar (and so maybe other third-party wikis)
- We should make these consistent through a schema change that sets the type of gb_address
- We can apply this schema change to WMF wikis to have the effect of removing the default from the column
Proposed schema changes
Stage 1: Fix the type and remove default from gb_address
Change the type of the gb_address column to VARBINARY(255) NOT NULL
ALTER TABLE /*_*/globalblocks CHANGE gb_address gb_address VARBINARY(255) NOT NULL;
Acceptance criteria
- The schema change is applied to the master branch of GlobalBlocking
- A Schema-change-in-production ticket is filed to apply the change, which should only just remove the default from gb_address - T414964