I’ve got a setup that consists of a master-changelog.xml
, and a number of SQL files under changelogs/
.
The contents of master-changelog.xml
looks something like:
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<includeAll
path="changelogs/"
relativeToChangelogFile="true"
/>
</databaseChangeLog>
What I want to be able to do is pass in a sensitive value to one of those SQL files, eg changelogs/020-create-users.sql
. I’ve tried adding a line, user.password: some value added at runtime
, but I can’t seem to propagate this to my create-users.sql file. Is this a possibility?