Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Starting with version 3.0.0 of tia Core Content Server, the database (both protocol and metadata) is managed by Flyway. Flyway is a framework that allows the version management of databases using scripts and records the used onestheir execution. This allows applications to self-manage the database even when changing structure changes, migrating data is migrated, or performing complex SQL-based operations are performed.

In contrast to using JPA (Java/Jakarta Persistence API) to manage the database, using Flyway requires SQL scripts for each database supported. tia Core ships with scripts for H2, MSSQL server and Oracle.

Flyway concept and naming patterns

Flyway updates a database from one version to the next using so called migrations. The database migrations are done using SQL-scripts which are applied and the usage is recorded in a Flyway history table in the database. Upon each start, the history table is compared to the existing scripts and if scripts are missing, the migrations will be applied.

...