forked from mtusi2026/mtusi2026lab3
16 lines
280 B
Python
16 lines
280 B
Python
#!/usr/bin/env python3
|
|
from messenger.db import apply_migrations, close_engine, init_engine
|
|
|
|
|
|
def main() -> None:
|
|
init_engine()
|
|
try:
|
|
apply_migrations()
|
|
print("migrations applied")
|
|
finally:
|
|
close_engine()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|