示例#1
0
def drop_types():
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'drop_types.sql'))
示例#2
0
def drop_types():
    db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'drop_types.sql'))
示例#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'))
示例#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'))