예제 #1
0
def create_tables():
    """Create the database tables."""
    from redash.models import db, init_db
    db.create_all()

    # Need to mark current DB as up to date
    stamp()

    init_db()
예제 #2
0
 def setUp(self):
     models.create_db(True, True)
     models.init_db()
예제 #3
0
파일: __init__.py 프로젝트: sangv/redash
 def setUp(self):
     models.create_db(True, True)
     models.init_db()
예제 #4
0
def create_tables():
    """Create the database tables."""
    from redash.models import create_db, init_db

    create_db(True, False)
    init_db()
예제 #5
0
파일: database.py 프로젝트: 5t111111/redash
def create_tables():
    """Create the database tables."""
    from redash.models import create_db, init_db

    create_db(True, False)
    init_db()