Example #1
0
def dropall():
    "Drops all database tables"

    if prompt_bool("Are you sure ? You will lose all your data !"):
        db.drop_all()
Example #2
0
 def tearDown(self):
     db.session.remove()
     db.drop_all()
Example #3
0
def dropall():
    "Drops all database tables"

    if prompt_bool("Are you sure ? You will lose all your data !"):
        db.drop_all()