yurtaev - lab4

This commit is contained in:
yurtaev.va
2026-11-06 15:43:25 +03:00
parent ec540a1a72
commit 2a88f717f3
22 changed files with 1627 additions and 42 deletions
+16
View File
@@ -0,0 +1,16 @@
"""Run schema changes once before starting API replicas."""
from app.main import migrate, pool
def main():
pool.open()
try:
pool.wait(timeout=20)
migrate()
finally:
pool.close()
if __name__ == "__main__":
main()