Skip to content

Unexpected argument(s): --substitutionParams= on Command update #109

@ru4sam326

Description

@ru4sam326

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions