forked from mtusi2026/mtusi2026lab5
ЛР 5 — БВТ2303 — Брезгунова — на 5
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
from pathlib import Path
|
||||
from src.storage import db
|
||||
|
||||
with db() as conn:
|
||||
conn.execute('SELECT pg_advisory_xact_lock(440001)')
|
||||
for path in sorted(Path('migrations').glob('*.sql')):
|
||||
conn.execute(path.read_text())
|
||||
print('Schema ready (idempotent migration).')
|
||||
Reference in New Issue
Block a user