You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the beginning and before releasing v1, sql folder will contain latest folder.
It will include ddl.sql for creating new tables, dml.sql for insert essential data for the application,
and test-data.sql for insert test data for development environment and for running test cases.
current-version.txt will contain the text v1.
Upon releasing db-v1, v1 folder will be created which will contain scripts equivalent to latest folder.
When developing for a new application release (v2 or later) with database changes, all changes will be in v2 folder and
also will be merged into existing scripts in latest folder. v2 folder can include ddl.sql for creating new tables,
altering existing tables, or deleting existing tables. It can also include dml.sql and test-data.sql.
current-version.txt will contain the text v2
Also, rollback-plan folder will be created which contains instructions on how to do database rollback accompanied by necessary scripts.
If a new database needs to be supported (e.g. oracle), a new folder will be created next to the previous database
folder (e.g. postgres), which will include same files as in latest folder.
deprecated folder contains any deprecated databases with the latest version of complete scripts.
In case of a rollback, latest will be updated to match previous state and also add suffix -rollbacked to the version folder.
rollback-to-version.txt will contain the version that rollbacked to (i.e. v2 or even v1 if rollbacked 2 versions).
release-mapping.txt contains mapping between database releases and application releases, in the following format: