Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 283 Bytes

one-migration-per-file.md

File metadata and controls

9 lines (5 loc) · 283 Bytes

== problem

Multiple migrations in the same file could lead to deadlocks if there is a single transaction for all migrations.

It can also prolong the life of locks obtained in earlier commands until the transaction finishes.

== solution

Use multiple files for multiple migrations.