16 lines
272 B
Python
Executable file
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()
|