fix(history): don't let different migration directories interfere with each other even though they share storage

This commit is contained in:
Joakim Carlstein 2023-11-24 11:10:01 +01:00
parent cf17e48f25
commit 9447d28ad8
4 changed files with 21 additions and 9 deletions

View file

@ -9,7 +9,8 @@ It's effectively a successor of [klei-migrate](https://www.npmjs.com/package/kle
- Database agnostic
- Emigrate can migrate any database
- Works at any scale
- Supports any database as storage so multiple instances can share the same migration history
- Supports any database as storage so multiple instances of the same app can share the same migration history
- Supports multiple projects/apps doing migrations on the same database without interfering with each other
- Uses smart locking to ensure only one instance migrates a certain migration at a time
- Thanks to the smart locking it's safe to run migrations in parallel
- Can be run inside containers