luminus

apeel 2019-09-20T18:40:52.007600Z

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.

jumar 2019-09-20T19:13:05.007800Z

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

apeel 2019-09-20T20:21:52.008200Z

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