-
Notifications
You must be signed in to change notification settings - Fork 16
Description
I'm trying to update with substitutional param
Code:
async accCreation() {
const myConfig: LiquibaseConfig = {
changeLogFile: 'db/entity_account/changelog.xml',
url: 'jdbc:postgresql://....../sbox',
username: 'xnode_admin',
password: '......!',
};
const instance = new Liquibase(myConfig);
const status = await instance.status();
console.log('status:',status)
const params: WithOptionalSubstitutionParams = {}
params.substitutionParams = {schemaName: 'testing123'}
return await instance.update(params);
}
Getting the below error:
[NODE-LIQUIBASE] Running C:\work\xnode\nodejs.dbadmin.api\node_modules\liquibase\dist\liquibase\liquibase --changeLogFile="db/entity_account/changelog.xml" --url="jdbc:postgresql://xnode-sbox.postgres.database.azure.com:5432/xnode_sbox" --username="xnode_admin" --password=****** update --substitutionParams={"schemaName":"testing123"} -DschemaName="testing123" ...
[NODE-LIQUIBASE]
[NODE-LIQUIBASE]
Unexpected argument(s): --substitutionParams={schemaName:testing123}