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')
def create_db(): """Install a default admin user and add an admin role to it. """ # check if admin exists db.create_all()
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')
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')
def create_db(): """creates db tables - import your models within commands.py to create the models. """ # check if admin exists db.create_all()