mirror of https://github.com/status-im/migrate.git
Merge pull request #126 from a-h/patch-1
Include details about migration locking in the FAQ
This commit is contained in:
commit
65870ff3e8
5
FAQ.md
5
FAQ.md
|
@ -64,4 +64,7 @@
|
|||
which prevents attempts to run more migrations on top of a failed migration. You need to manually fix the error
|
||||
and then "force" the expected version.
|
||||
|
||||
|
||||
#### What happens if two programs try and update the database at the same time?
|
||||
Database-specific locking features are used by *some* database drivers to prevent multiple instances of migrate from running migrations at the same time
|
||||
the same database at the same time. For example, the MySQL driver uses the `GET_LOCK` function, while the Postgres driver uses
|
||||
the `pg_advisory_lock` function.
|
||||
|
|
Loading…
Reference in New Issue