from open_event import current_app from open_event.models import db if __name__ == "__main__": with current_app.app_context(): db.reflect() db.drop_all()
def drop_db(): with app.test_request_context(): db.session.remove() db.drop_all()
def drop_db(): with app.app_context(): db.session.remove() db.drop_all()