ЛР 5 — БВТ2303 — Брезгунова — на 5

This commit is contained in:
2026-11-13 13:10:15 +03:00
parent 276dbdad8a
commit ab9161be3d
64 changed files with 5191 additions and 34 deletions
+8
View File
@@ -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).')