예제 #1
0
파일: database.py 프로젝트: ubccr/harrier
def create():
    "Creates database tables"
    if prompt_bool("**DANGER AREA** Are you sure you want to proceed?"):
        if prompt_bool(
                "You are about to create the ENTIRE database from scratch. Are you sure?"
        ):
            db.create_all()
예제 #2
0
파일: database.py 프로젝트: ubccr/harrier
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()
예제 #3
0
def runserver(host='127.0.0.1'):
    "Run stand alone test server"
    logging.getLogger().setLevel(logging.INFO)
    db.create_all()
    current_app.run(host=host, debug=False)
예제 #4
0
파일: manager.py 프로젝트: ubccr/harrier
def runserver(host='127.0.0.1'):
    "Run stand alone test server"
    logging.getLogger().setLevel(logging.INFO)
    db.create_all()
    current_app.run(host=host, debug=False)
예제 #5
0
파일: database.py 프로젝트: ubccr/harrier
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()
예제 #6
0
파일: database.py 프로젝트: ubccr/harrier
def create():
    "Creates database tables"
    if prompt_bool("**DANGER AREA** Are you sure you want to proceed?"):
        if prompt_bool("You are about to create the ENTIRE database from scratch. Are you sure?"):
            db.create_all()