예제 #1
0
파일: manage.py 프로젝트: laranea/Ignite
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()
예제 #2
0
 def teardown(self):
     db.session.remove()
     db.drop_all()
예제 #3
0
def drop_tables():
    db.drop_all()
예제 #4
0
 def teardown():
     db.session.remove()
     db.drop_all()
예제 #5
0
 def teardown():
     with app.app_context():
         db.session.remove()
         db.drop_all()