You are on page 1of 1

GISTA Universe Documentation

Flyway
Berikut implementation constraint ketika membuat script flyway migration:

1. Flyway script must be re-runnable / idempotent (eg : before create table also check if exists
first)
2. During the first step of development processes to initialize the database group each flyway
script with the correlated tables or by its logical grouping

Berikut standard naming convention script flyway migration:

- Standard Flyway script naming convention for ddl tables operations


V[version_number]__[operations (create/alter/etc)]_[table_name]_[short_description].sql
eg: V1.0__Create_fam_m_cabang_init.sql

- Standard Flyway script naming convention for ddl views, procedures, functions and packages
operations, naming convention for db object : views (v), procedures (sp), functions (fn)
R__[order grouping]_[operations (create/alter/etc)]_[db_object]_[short_description].sql
eg: R__000_Create_sp_otorisasi_cabang.sql

You might also like