feat: lab3 init

This commit is contained in:
yurtaev.va
2026-10-23 18:54:43 +03:00
parent 0ab3a341aa
commit 2e23dbe095
16 changed files with 886 additions and 12 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()