Esempio n. 1
0
def drop_types():
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'drop_types.sql'))
Esempio n. 2
0
def drop_types():
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'drop_types.sql'))
Esempio n. 3
0
def create_all():
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'create_extensions.sql'))
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'create_types.sql'))
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'create_tables.sql'))
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'create_primary_keys.sql'))
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'create_foreign_keys.sql'))
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'create_indexes.sql'))
Esempio n. 4
0
def create_all():
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'create_extensions.sql'))
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'create_types.sql'))
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'create_tables.sql'))
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'create_primary_keys.sql'))
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'create_foreign_keys.sql'))
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'create_indexes.sql'))