fix #32
This commit is contained in:
parent
325c735f4e
commit
2d6f368ff1
9 changed files with 63 additions and 34 deletions
|
@ -338,7 +338,8 @@ def create_db():
|
|||
""" Creates DB tables
|
||||
"""
|
||||
green("Creating all tables")
|
||||
db.create_all()
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
|
||||
|
||||
@cli.command()
|
||||
|
@ -347,7 +348,8 @@ def drop_db():
|
|||
""" Drops DB tables
|
||||
"""
|
||||
yellow("Dropping all tables")
|
||||
db.drop_all()
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
|
||||
|
||||
@cli.command()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue