Add Liquibase to ACM runtime (Liquibase #3) 98/141498/5 master
authordanielhanrahan <daniel.hanrahan@est.tech>
Tue, 15 Jul 2025 09:31:14 +0000 (10:31 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Tue, 15 Jul 2025 12:59:16 +0000 (13:59 +0100)
commit23dab9252fe6652c326af0e5789b125cdd853648
treed72041bd8935c35e1bdea4431d4a119735ae63fe
parent3dc7daf25b262880af51bffaac0da49375826a3d
Add Liquibase to ACM runtime (Liquibase #3)

This is the minimal work to get Liquibase running in ACM runtime:

- Add Liquibase POM dependency.
- Add Liquibase changelogs running all SQL files.
- Pre-conditions are added for each set of changes, to allow upgrade
  from existing database created by DB-migrator to Liquibase.
- Minor changes for some SQL files to be compatible with H2 database,
  used in tests (otherwise maven build would fail).
- Disable hibernate ddl-auto so only Liquibase runs during tests.

Issue-ID: POLICY-5398
Change-Id: Iaa1a589ee6e29516f10a2488f6577bbfa291e8ef
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
23 files changed:
packages/policy-clamp-tarball/src/main/resources/etc/AcRuntimeParameters.yaml
runtime-acm/pom.xml
runtime-acm/src/main/resources/application.yaml
runtime-acm/src/main/resources/db/changelog/1500/upgrade/0100-automationcomposition.sql
runtime-acm/src/main/resources/db/changelog/1600/upgrade/0200-automationcompositionelement.sql
runtime-acm/src/main/resources/db/changelog/1700/upgrade/0100-message.sql
runtime-acm/src/main/resources/db/changelog/1700/upgrade/0200-messagejob.sql
runtime-acm/src/main/resources/db/changelog/1701/upgrade/0100-automationcompositionrollback.sql
runtime-acm/src/main/resources/db/changelog/1701/upgrade/0200-automationcomposition.sql
runtime-acm/src/main/resources/db/changelog/1701/upgrade/0300-automationcompositionelement.sql
runtime-acm/src/main/resources/db/changelog/1701/upgrade/0500-automationcompositiondefinition.sql
runtime-acm/src/main/resources/db/changelog/1701/upgrade/0600-nodetemplatestate.sql
runtime-acm/src/main/resources/db/changelog/1701/upgrade/0800-participantreplica.sql
runtime-acm/src/main/resources/db/changelog/1701/upgrade/0900-participantsupportedacelements.sql
runtime-acm/src/main/resources/db/changelog/changelog-1400.yaml [new file with mode: 0644]
runtime-acm/src/main/resources/db/changelog/changelog-1500.yaml [new file with mode: 0644]
runtime-acm/src/main/resources/db/changelog/changelog-1600.yaml [new file with mode: 0644]
runtime-acm/src/main/resources/db/changelog/changelog-1601.yaml [new file with mode: 0644]
runtime-acm/src/main/resources/db/changelog/changelog-1700.yaml [new file with mode: 0644]
runtime-acm/src/main/resources/db/changelog/changelog-1701.yaml [new file with mode: 0644]
runtime-acm/src/main/resources/db/changelog/db.changelog-master.yaml [new file with mode: 0644]
runtime-acm/src/test/resources/application-prometheus-noauth.yaml
runtime-acm/src/test/resources/application-tracing.yaml