Migrating
Basic adjustments
If you want to migrate from an old version to a new version, you have to do the following steps
- pull the current dbFlow version from github
- Adjust the directory structure from top to bottom
Important
This means that you have to make the changes in the master branch and merge them through the stage branches to the development branch. This way, there is no new delta to be imported for these adjustments in the next release.
# after the changes
$...@master: git commit -m "migrating dbFlow new structure"
$...@master: git push
# checkout user acceptence stage
$...@master: git checkout uac
$...@uac: git merge master
$...@uac: git push
# checkout user test stage
$...@uac: git checkout test
$...@test: git merge uac
$...@test: git push
# checkout user development stage
$...@test: git checkout develop
$...@develop: git merge test
$...@develop: git push
Following changes in directory structure from 0.9.8 - stable to 1.0.0
- The folder
tables_ddl
becomes a subfolder of the foldertables
. - The directories
dml/pre
anddml/post
, andddl/pre
andddl/post
become:dml/patch/pre
anddml/patch/post
, andddl/patch/pre
andddl/patch/post
. - In old versions there was the folder
source
. This is treated as plural now and must be renamed tosources
.
Following changes in build.env from 0.9.8 - stable to 1.0.0 have to be done
- You have to store project mode inside build.env
# Following values are valid: SINGLE, MULTI or FLEX PROJECT_MODE=MULTI
-
When you want to use release.sh for nightlybuild, you have to name the build branch
# Name of the branch, where release tests are build BUILD_BRANCH=build
-
When you are using the generate changelog feature you have to adjust the following vars
# Generate a changelog with these settings # When template.sql file found in reports/changelog then it will be # executed on apply with the CHANGELOG_SCHEMA . # The changelog itself is structured using INTENT_PREFIXES to look # for in commits and to place them in corresponding INTENT_NAMES inside # the file itself. You can define a regexp in TICKET_MATCH to look for # keys to link directly to your ticketsystem using TICKET_URL CHANGELOG_SCHEMA=schema_name INTENT_PREFIXES=( Feat Fix ) INTENT_NAMES=( Features Fixes ) INTENT_ELSE="Others" TICKET_MATCH="[A-Z]\+-[0-9]\+" TICKET_URL="https://url-to-your-issue-tracker-like-jira/browse"