conference-archive/create_db.py
2023-09-13 16:19:08 +05:30

16 lines
272 B
Python
Executable file

#!/usr/bin/python3
from confarchive import database, model
from main import app
def create_db() -> None:
"""Create database."""
app
engine = database.session.get_bind()
model.Base.metadata.create_all(engine)
if __name__ == "__main__":
create_db()