def actually_drop_tables(): if env != 'dev': confirm = input("Are you sure you want to run this on {}?".format(env)) if confirm.lower().strip() != 'yes': return click.echo('Dropping the db') db.drop_all()
def teardown(self): db.session.remove() db.drop_all()
def drop_tables(): db.drop_all()
def teardown(): db.session.remove() db.drop_all()
def teardown(): with app.app_context(): db.session.remove() db.drop_all()