conference-archive/create_db.py

16 lines
272 B
Python
Raw Normal View History

2023-09-13 11:49:08 +01:00
#!/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()