Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Database migration handled by Flyway, SQL scripts updated
- Loading branch information
Showing
19 changed files
with
711 additions
and
437 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## DB migration scripts for OpenHub | ||
|
||
* SQL schema should be handled by Flyway, which does apply all the scripts in the migration folder | ||
with respect to the selected db engine. | ||
* All scripts should be immutable, once added & applied, then they should not be changes. There is naming convention in place, | ||
scripts should start with VX_X__ version, as it is default for Flyway. | ||
* Interesting configuration properties: | ||
``` | ||
flyway.baseline-on-migrate = (true/false) | ||
- whether to automatically call baseline when migrate is executed against a non-empty schema with no metadata table. This schema will then | ||
be baselined with the baselineVersion before executing the migrations. Only migrations above baselineVersion will then be applied. | ||
``` | ||
|
||
* See flyway documentation (https://flywaydb.org/documentation/) for more information. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.