Fix migration helper race conditions
What does this MR do?
This MR fixes two problems with the migration helpers:
- An error in
change_column_null
would not drop the previously created column -
update_column_in_batches
would rely on the number of rows in a table to determine how many to update. This meant that newly inserted rows (after theCOUNT
) would not be taken into account.
This MR also removes an outdated comment for update_column_in_batches
.
Are there points in the code the reviewer needs to double check?
No.
Why was this MR needed?
See above.
What are the relevant issue numbers?
Fixes #18483 (closed)
Does this MR meet the acceptance criteria?
-
CHANGELOG entry added -
Documentation created/updated -
API support added -
Tests -
Added for this feature/bug -
All builds are passing
-
-
Conform by the style guides -
Branch has no merge conflicts with master
(if you do - rebase it please) -
Squashed related commits together