The relative path for Flyway in a Gradle project can be specified in the build.gradle file using the following steps:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.flywaydb:flyway-gradle-plugin:${flywayVersion}"
}
}
apply plugin: "org.flywaydb.flyway"
flyway {
url = "jdbc:postgresql://localhost:5432/mydb"
user = "myuser"
password = "mypass"
locations = ["filesystem:./db/migrations"]
}
In this example, the locations
property specifies that the migration scripts are located in the db/migrations
directory relative to the project root. This can be customized to point to a different directory using a relative path.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-07-01 22:32:37 +0000
Seen: 13 times
Last updated: Jul 01 '23
What is the process to integrate SQLiter in KMM for both Android and IOS?
Can a transitive dependency in gradle be made exclusively for runtime purposes?
Why can't IntelliJ IDEA detect the Kotlin multiplatform library?
How do compileSdkVersion and targetSdkVersion differ from each other?
What does the error message "Failed to apply plugin [id 'com.jfrog.artifactory']" mean?
Why doesn't the Android Studio display the layout preview once MaterialCalendarView has been added?
How to update the outdated WebSecurityConfigurerAdapter in Spring Boot?