I added database configuration in build.gradle
liquibase {
activities {
main {
changeLogFile "${this.rootDir}/src/main/resources/changelog-master.xml"
url "jdbc:postgresql://localhost:5432/test?createDatabaseIfNotExist=true"
username "xxxx"
password "xxxx"
}
}
runList = 'main'
}
createDatabaseIfNotExist
is set to true in the URL.
When I start the server, it gives database does not exists.
I want liquibase to create database if it doesn't exists.
Any suggestions please