initial commit
This commit is contained in:
13
app/schema.py
Normal file
13
app/schema.py
Normal file
@ -0,0 +1,13 @@
|
||||
from .db import db
|
||||
|
||||
# list of statements
|
||||
SCHEMA = [
|
||||
|
||||
]
|
||||
|
||||
def create():
|
||||
print("Creating schema...")
|
||||
with db.transaction():
|
||||
for stmt in SCHEMA:
|
||||
db.execute(stmt)
|
||||
print("Schema completed.")
|
Reference in New Issue
Block a user