development:database_migration_management
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| development:database_migration_management [2015/04/24 13:08] – [Create idempotent database migration scripts] lee | development:database_migration_management [2015/04/24 13:18] (current) – [How the OHDSI WebAPI services use Flyway] lee | ||
|---|---|---|---|
| Line 38: | Line 38: | ||
| Note. The OHDSI WebAPI build has the Flyway "out of order execution" | Note. The OHDSI WebAPI build has the Flyway "out of order execution" | ||
| + | |||
| + | When the Flyway "out of order execution" | ||
| + | |||
| + | For the OHDSI WebAPI having this option enabled gives us the flexibility for one developer to e.g. add a new database migration script V1.0.0.1.1_heracles_schema_migration.sql and it will be executed one time, even if the last previous version change was V1.0.0.4_circe_schema_migration.sql. i.e. It allows each developer to flexibly & independently migrate their database tables for the set of WebAPI services they are responsible for, without schema change conflicts, as long as those sets of tables are distinct from the tables used by other WebAPI services. | ||
| ==== Testing Flyway migration scripts prior to a pull request ==== | ==== Testing Flyway migration scripts prior to a pull request ==== | ||
| Ideally you will need access to a local test environment with all three DBMS systems - SQL Server, Postgresql and Oracle. | Ideally you will need access to a local test environment with all three DBMS systems - SQL Server, Postgresql and Oracle. | ||
development/database_migration_management.1429880904.txt.gz · Last modified: by lee
