Skip to content

Conversation

IndraGunawan
Copy link

Q A
Type bug
BC Break no
Fixed issues

Summary

Current behaviour, it won't generate the database-platform check code block without adding the --check-database-platform=true option to diff command, regardless of the value of check_database_platform in the configuration, and make the configuration useless. since check-database-platform option default value is false, so it won't pass this condition https://github.com/doctrine/migrations/blob/3.9.x/src/Generator/SqlGenerator.php#L74-L92

in the documentation check_database_platform default value is true https://github.com/doctrine/migrations/blob/3.9.x/docs/en/reference/configuration.rst?plain=1#L147

@IndraGunawan IndraGunawan changed the title Change check-database-platform option default value to true on DiffCo… Change check-database-platform option default value to true on DiffCommand Jul 11, 2025
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