Skip to content

Execute migrations using the ExecutionStrategy#34206

Merged
AndriySvyryd merged 2 commits intomainfrom
Issue17578
Jul 26, 2024
Merged

Execute migrations using the ExecutionStrategy#34206
AndriySvyryd merged 2 commits intomainfrom
Issue17578

Conversation

@AndriySvyryd
Copy link
Member

Use a single transaction for all migrations in the script

Fixes #17578
Fixes #22616

@AndriySvyryd AndriySvyryd requested a review from a team July 11, 2024 01:08
@AndriySvyryd
Copy link
Member Author

Only review the last commit

Allow to specify a target migration in Migrate call
Warn on Migrate when there are pending model changes

Fixes #17568
Fixes #33732
Fixes #34196
Use a single transaction for all migrations in the script

Fixes #17578
Fixes #22616
@AndriySvyryd AndriySvyryd enabled auto-merge (rebase) July 16, 2024 01:12
Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviews 2nd commit only, LGTM but see comments.

@AndriySvyryd AndriySvyryd merged commit 3d6868e into main Jul 26, 2024
@AndriySvyryd AndriySvyryd deleted the Issue17578 branch July 26, 2024 21:22
@roji
Copy link
Member

roji commented Jul 26, 2024

Ah, my bad - forgot to clear auto-merge before approving. @AndriySvyryd take a look at the comments above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop all migrations and roll back everything on failure Execution strategy for migration

2 participants