Initial commit.
This commit is contained in:
commit
4e5ee195dd
10 changed files with 372 additions and 0 deletions
15
create_db.py
Executable file
15
create_db.py
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue