Exemple #1
0
def rebuild():
    "Rebuild database tables"
    if prompt_bool("**DANGER AREA** Are you sure you want to proceed?"):
        if prompt_bool(
                "You are about to rebuild the ENTIRE database from scratch. Are you sure?"
        ):
            db.drop_all()
            db.create_all()
Exemple #2
0
def drop():
    "Drops all database tables"
    if prompt_bool("**DANGER AREA** Are you sure you want to proceed?"):
        if prompt_bool("You are about to delete the ENTIRE database. Are you sure?"):
            db.drop_all()
Exemple #3
0
def rebuild():
    "Rebuild database tables"
    if prompt_bool("**DANGER AREA** Are you sure you want to proceed?"):
        if prompt_bool("You are about to rebuild the ENTIRE database from scratch. Are you sure?"):
            db.drop_all()
            db.create_all()
Exemple #4
0
def drop():
    "Drops all database tables"
    if prompt_bool("**DANGER AREA** Are you sure you want to proceed?"):
        if prompt_bool(
                "You are about to delete the ENTIRE database. Are you sure?"):
            db.drop_all()