Пример #1
0
def create_db():
    """creates db tables - import your models within commands.py to create the models.
    """
    db.engine.execute('CREATE EXTENSION if not exists pg_trgm ;')
    print('Trigram extension installed successfully')
    db.create_all()
    print('Database structure created successfully')
Пример #2
0
def create_db():
    """Install a default admin user and add an admin role to it.
    """
    # check if admin exists
    db.create_all()
Пример #3
0
def create_db():
    """creates db tables - import your models within commands.py to create the models.
    """
    # check if admin exists
    db.create_all()
    print('Database structure created successfully')
Пример #4
0
def create_db():
    """creates db tables - import your models within commands.py to create the models.
    """
    # check if admin exists
    db.create_all()
    print ('Database structure created successfully')
Пример #5
0
def create_db():
    """creates db tables - import your models within commands.py to create the models.
    """
    # check if admin exists
    db.create_all()