forked from mtusi2026/mtusi2026lab7
16 lines
180 B
Python
16 lines
180 B
Python
|
|
|
|
import db
|
|
|
|
|
|
def main():
|
|
db.pool.open(wait=True, timeout=30)
|
|
try:
|
|
db.run_migrations()
|
|
finally:
|
|
db.pool.close()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|