예제 #1
0
def dropdb():
    """Drops database tables"""
    if prompt_bool("Are you sure you want to lose all your data"):
        destroy_db()
        db.drop_all()
        db_setup()
        db.create_all()
예제 #2
0
def dropdb():
    """Drops database tables"""
    if prompt_bool("Are you sure you want to lose all your data"):
        destroy_db()
        db.drop_all()
        db_setup()
        db.create_all()
예제 #3
0
파일: manage.py 프로젝트: 5l1v3r1/malice-2
def createdb():
    """Create database tables"""
    db_setup()
    db.create_all()

    # create user roles
    Role.insert_roles()
예제 #4
0
def createdb():
    """Create database tables"""
    db_setup()
    db.create_all()
예제 #5
0
def createdb():
    """Create database tables"""
    db_setup()
    db.create_all()