Page MenuHomePhabricator

Create a maintenance script to populate block and block_target from ipblocks
Closed, ResolvedPublic

Description

Review parent task (T346293) for more context, and a high-level overview of the migration plan.

Context:

  • block is the new table that holds blocks against accounts, IPs and IP ranges.
  • block_target is a new table introduced to support multiple blocks.

This task is to create a script to populate block and block_target with the data from ipblocks.

Event Timeline

Please fix T282890 -- if any rows have ipb_parent_block_id=0, they should have bl_parent_block_id=null in the new schema.

Please fix T282890 -- if any rows have ipb_parent_block_id=0, they should have bl_parent_block_id=null in the new schema.

Sure

MusikAnimal renamed this task from Create a maintenance script to populate block_target and ipb_target on ipblocks to Create a maintenance script to populate block and block_target from ipblocks.Nov 28 2023, 1:11 AM
MusikAnimal updated the task description. (Show Details)

Change 977985 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/core@master] MigrateBlocks: maintenance script for migrating to multiblocks schema

https://gerrit.wikimedia.org/r/977985

Change 977985 merged by jenkins-bot:

[mediawiki/core@master] MigrateBlocks: maintenance script for migrating to multiblocks schema

https://gerrit.wikimedia.org/r/977985