This commit is contained in:
Matthew Scragg 2014-10-30 17:59:19 -05:00
parent 325c735f4e
commit 2d6f368ff1
9 changed files with 63 additions and 34 deletions

View file

@ -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()