Beta currently has $wgBlockTargetMigrationStage = SCHEMA_COMPAT_READ_OLD | SCHEMA_COMPAT_WRITE_BOTH. @dom_walden reports that differences between the two tables have developed in some wikis.
In dewiki beta, there is an extra block with timestamp 2024-02-12 08:59:41, which is long after the migration script finished:
MariaDB [dewiki]> select bl_id,bl_timestamp,ipb_timestamp from ipblocks,block,block_target where ipb_id=bl_id and bl_target=bt_id and bl_id>15942; +-------+----------------+----------------+ | bl_id | bl_timestamp | ipb_timestamp | +-------+----------------+----------------+ | 15944 | 20240208072137 | 20240208072137 | | 15947 | 20240212141929 | 20240212141929 | | 15948 | 20240212090038 | 20240212085941 | | 15949 | 20240212094313 | 20240212090038 | | 15950 | 20240212094539 | 20240212094450 | | 15951 | 20240212094703 | 20240212094620 | | 15952 | 20240212095221 | 20240212094703 | +-------+----------------+----------------+
I'll isolate and fix the bugs, then truncate the tables on beta and run the migration script again.