refactor(utils): adds app to drop_db
This commit is contained in:
@@ -12,5 +12,7 @@ class DBUtils():
|
|||||||
with app.app_context():
|
with app.app_context():
|
||||||
db.create_all()
|
db.create_all()
|
||||||
|
|
||||||
def drop_db():
|
def drop_db(app):
|
||||||
db.drop_all()
|
with app.app_context():
|
||||||
|
db.drop_all()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user