Skip to content

Add MySQL ALTER TABLE algorithm option to diff command - #1601

Open
Nickolaus wants to merge 1 commit into
doctrine:3.10.xfrom
Nickolaus:feature/mysql-alter-algorithm-option
Open

Nickolaus wants to merge 1 commit into
doctrine:3.10.xfrom
Nickolaus:feature/mysql-alter-algorithm-option

Conversation

@Nickolaus

Copy link
Copy Markdown
Q A
Type feature
BC Break no
Fixed issues None

Summary

Adds an optional --mysql-algorithm=INSTANT|INPLACE option to doctrine-migrations diff. When set, the selected algorithm is added to generated MySQL ALTER TABLE statements in both the up() and down() migration methods. The default output remains unchanged.

The command rejects unsupported algorithm values and use with non-MySQL platforms. The documentation describes the option and links to MySQL's online DDL operation matrix.

@Nickolaus
Nickolaus marked this pull request as ready for review October 13, 2026 14:33
@greg0ire
greg0ire changed the base branch from 3.9.x to 3.10.x November 24, 2026 20:36
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.

1 participant