add global locking mechanism to database migrations
Compare changes
+ 3
− 12
@@ -17,17 +15,8 @@ logger = logging.getLogger("alembic.env")
@@ -85,8 +74,10 @@ def run_migrations_online() -> None:
If we want to use a global lock to prevent race conditions on who gets to run a migration, this MR should implement that