Doctrine Migrations Pitfalls

Use when writing, generating or running schema migrations with doctrine/migrations (PHP): migrations that are not atomic because MySQL and Oracle commit DDL implicitly (isTransactional, the transactional and all_or_nothing settings, splitting data changes from DDL), generated diff migrations that drop tables Doctrine does not map, dry runs and written SQL files, platform guards with abortIf, irreversible down methods, version class names that sort wrongly as strings, and the version table commands that can re-run or skip a migration.

techmefr Updated

File contents

techmefr/mentis commit aefc58fead

Frequently asked questions

npx get-skill add techmefr/doctrine-migrations-pitfalls