Closed plachanc73 closed 3 years ago
hey @plachanc73 what version of node-liquibase
are you seeing this on?
@tabuckner In the current version https://github.com/liquibase/node-liquibase/blob/master/src/liquibase.ts
@plachanc73 okay awesome! Not so much that you ran into an issue, but more that I just opened a PR that I believe resolves that issue.
I'll see if I can replicate the issue you reported locally and if so I'll have some more questions :)
Thank you for reporting this!! 😄
released in https://www.npmjs.com/package/liquibase/v/4.3.9
In the run method, on the line 'return this.spawnChildProcess(
${this.liquibasePathAndGlobalAttributes(mergedParams)} ${action} ${commandParamsString}
);', I think the ${commandParamsString} should be before ${action} to avoid error unexpected command parameters.When I am calling the update with the parameter liquibaseSchemaName with this code, I am getting an unexpected command parameters: [--liquibaseSchemaName=schemaName]:
const liquibaseUpdateCommandAttribute: UpdateCommandAttributes = { liquibaseSchemaName:
${schemaName}
, } instLiquibase.update(liquibaseUpdateCommandAttribute)