gilde-ci-cd/documentation/chapters/templates/java/maven/maven-db-diff-template.adoc
2022-07-08 09:55:35 +02:00

20 lines
665 B
Plaintext

:sourcedir: ../../../../../templates/
= Maven Database Diff
This template generates a diff between the Liquibase schema and the Hibernate model of a database.
The resulting xml can be used as a base for schema changes.
Please look at the resulting changelog since it can have errors.
.Variables
|===
|Name |Description | Default Value
|GRADLE_CLI_OPTS | Additional options send to gradle | ""
| PATH_TO_DIFF | Path to the resulting diff is defined in gradle config, this will also be exposed as the artefact of the Job. | "target/db-diff.xml"
|===
.gradle-build-template
[source,yaml]
----
include::{sourcedir}java/maven/maven-database-diff.gitlab-ci.yml[]
----