Merge pull request #126 from a-h/patch-1

Include details about migration locking in the FAQ
This commit is contained in:
Dale Hui 2018-12-14 17:36:07 -08:00 committed by GitHub
commit 65870ff3e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

5
FAQ.md
View File

@ -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.