Esempio n. 1
0
def dropdb():
    """
    drops the database
    """
    if prompt_bool("Are you sure you want to lose all your data"):
        db.drop_all()
        print "Dropped the database"
Esempio n. 2
0
def dropdb():
    if prompt_bool("Are you sure you want to drop db?"):
        db.drop_all()
        print('Dropped databases')
Esempio n. 3
0
def dropdb():
    if prompt_bool('Are you sure you want to lose all your data'):
        db.drop_all()
        print 'Dropped Database'
Esempio n. 4
0
def dropdb():
    if prompt_bool('Are you sure you want to drop database'):
        db.drop_all()
        print 'Dropped the database'
Esempio n. 5
0
def dropdb():
    if prompt_bool("Are you sure you want to lose all your data"):
        db.drop_all()
        print 'Dropped the database'
def dropdb():
    if prompt_bool(
            "are you sure you want to lose all your date?"):
        db.drop_all()
        print("dropped the database")
Esempio n. 7
0
def dropdb():
    if prompt_bool("Are you sure you want to lose all your data?"):
        db.drop_all()
        print("Dropped the database")
Esempio n. 8
0
def dropdb():
    if prompt_bool("Are you sure deleting Db"):
        db.dropdb()
        db.drop_all()
        print("Dropped DB")
Esempio n. 9
0
def dropdb():
    if prompt_bool("Are you sure you want to lose all your data"):
        db.drop_all()
        print("Dropped DB")
Esempio n. 10
0
def dropdb():
    if prompt_bool("Are you sure you want to loose all your data"):
        db.drop_all()
        print("Dropped all DB objects using db.drop_all command")
Esempio n. 11
0
def dropdb():
    if prompt_bool("are you sure to delete database?"):
        db.drop_all()
        print("Dropped the database")
Esempio n. 12
0
def dropdb():
    if prompt_bool("Are you sure to lose your data?"):
        db.drop_all()
        print('Dropped and lost!')
Esempio n. 13
0
def dropdb():
    if prompt_bool(
        "Are you sure you want to lose all your data"):
        db.drop_all()
        record_annotation(module="jobs", action="dropdb", text="Database Drop confirmed")
        print 'Dropped the database'
Esempio n. 14
0
def dropdb():
    if prompt_bool("Are you sure to delete DB"):
        db.drop_all()
        print 'Delete DB'