Fork me on GitHub
#luminus
<
2019-09-20
>
apeel18:09:52

Does migratus acquire a db lock before applying changes? I'm setting up a deployment where multiple app instances start up at once. It would be easiest if they could all just try to run migrations on startup but only the one that gets a lock can run them. If they don't lock, I'll have to do something more complicated.

jumar19:09:05

Although I don't know the internals this should give you some hints: - https://github.com/yogthos/migratus/issues/94 - https://github.com/yogthos/migratus/pull/95

apeel20:09:52

Great! Thanks. I should have thought to look through issues.