예제 #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"
예제 #2
0
def dropdb():
    if prompt_bool("Are you sure you want to drop db?"):
        db.drop_all()
        print('Dropped databases')
예제 #3
0
def dropdb():
    if prompt_bool('Are you sure you want to lose all your data'):
        db.drop_all()
        print 'Dropped Database'
예제 #4
0
def dropdb():
    if prompt_bool('Are you sure you want to drop database'):
        db.drop_all()
        print 'Dropped the database'
예제 #5
0
def dropdb():
    if prompt_bool("Are you sure you want to lose all your data"):
        db.drop_all()
        print 'Dropped the database'
예제 #6
0
def dropdb():
    if prompt_bool(
            "are you sure you want to lose all your date?"):
        db.drop_all()
        print("dropped the database")
예제 #7
0
def dropdb():
    if prompt_bool("Are you sure you want to lose all your data?"):
        db.drop_all()
        print("Dropped the database")
예제 #8
0
def dropdb():
    if prompt_bool("Are you sure deleting Db"):
        db.dropdb()
        db.drop_all()
        print("Dropped DB")
예제 #9
0
def dropdb():
    if prompt_bool("Are you sure you want to lose all your data"):
        db.drop_all()
        print("Dropped DB")
예제 #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")
예제 #11
0
def dropdb():
    if prompt_bool("are you sure to delete database?"):
        db.drop_all()
        print("Dropped the database")
예제 #12
0
def dropdb():
    if prompt_bool("Are you sure to lose your data?"):
        db.drop_all()
        print('Dropped and lost!')
예제 #13
0
파일: manage.py 프로젝트: rjjanuary/thermos
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'
예제 #14
0
def dropdb():
    if prompt_bool("Are you sure to delete DB"):
        db.drop_all()
        print 'Delete DB'