我想在我的类路径中添加一个 jar 文件,但我收到错误 Unexpected error running Liquibase: 'C:\jar\migrations-0.0.1-SNAPSHOT.jar' does not exist
。我必须写绝对路径吗?有没有办法使用相对于ìndex.js
的路径?
const POSTGRESSQL_DEFAULT_CONFIG = require('liquibase').POSTGRESSQL_DEFAULT_CONFIG;
const myConfig = {
...POSTGRESSQL_DEFAULT_CONFIG,
changeLogFile: 'db/master/changelog.xml',
url: 'jdbc:postgresql://localhost:5432/saft-demo-dump?allowMultiQueries=TRUE',
username: 'postgres',
password: '*****',
classpath:"/jar/migrations-0.0.1-SNAPSHOT.jar"
}
const instTs = new LiquibaseTS(myConfig);