This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
"""Apply versioned SQL migrations from migrations/; safe to run repeatedly and concurrently.
|
||||
|
||||
Usage: python -m app.migrate
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
@@ -17,7 +13,6 @@ logging.basicConfig(level=logging.INFO, format="%(levelname)s %(name)s: %(messag
|
||||
logger = logging.getLogger("migrate")
|
||||
|
||||
MIGRATIONS_DIR = Path(__file__).resolve().parents[1] / "migrations"
|
||||
# Arbitrary constant: serialises concurrent runners (e.g. several API replicas in lab3).
|
||||
LOCK_ID = 2026_0002
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user