fix(mysql): make sure migrations are run in order when run concurrently
Now we either lock all or none of the migrations to run, to make sure they are not out of order when multiple instances of Emigrate run concurrently.
This commit is contained in:
parent
6eb60177c5
commit
26240f49ff
13 changed files with 922 additions and 98 deletions
5
.changeset/bright-poems-approve.md
Normal file
5
.changeset/bright-poems-approve.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@emigrate/mysql': patch
|
||||
---
|
||||
|
||||
Make sure we can initialize multiple running instances of Emigrate using @emigrate/mysql concurrently without issues with creating the history table (for instance in a Kubernetes environment and/or with a Percona cluster).
|
||||
5
.changeset/yellow-walls-tease.md
Normal file
5
.changeset/yellow-walls-tease.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@emigrate/mysql': patch
|
||||
---
|
||||
|
||||
Either lock all or none of the migrations to run to make sure they run in order when multiple instances of Emigrate runs concurrently (for instance in a Kubernetes environment)
|
||||
Loading…
Add table
Add a link
Reference in a new issue