X4 Help Center

Executing Liquibase Scripts

This feature can execute Liquibase scripts without using the Liquibase CLI. The feature is only available via a CLI command; no guided/interactive sequence is available.

The full CLI command is:

--jdbc-url <JDBC_connection_string> --jdbc-user "<database_username>" --jdbc-password <database-password> --liquibase-schema <schema-name> --liquibase-changelog-file <filename> --liquibase-changelog-path=<directory>

The following CLI parameters are relevant:

Parameter

Description

--jdbc-url

JDBC connection string

--jdbc-user

Database user for the X4 database connection

The user must exist and must have permissions to execute DDL statements.

--jdbc-password

Password for the X4 database connection

--liquibase-schema

Optional.

Name of the schema in which the Liquibase management tables (DATABASECHANGELOG and DATABASECHANGELOGLOCK) are to be created. This schema must exist before the script runs.

If the schema is not specified, the default database schema is used to create the Liquibase tables.

--liquibase-changelog-file

Mandatory.

Path to the changelog file to be executed with Liquibase.

--liquibase-changelog-path

Optional.

Path to a directory that is used by Liquibase for resolving references. If omitted, the current directory is used.