def drop_types(): db.run_sql_script(os.path.join(ADMIN_SQL_DIR, 'drop_types.sql'))
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'))