forked from mtusi2026/mtusi2026lab3
feat: lab3 init
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user