adding driver property for flyway tasks
This commit is contained in:
@@ -242,6 +242,7 @@ buildscript {
|
|||||||
|
|
||||||
flyway {
|
flyway {
|
||||||
url = "jdbc:mysql:thin://localhost:3306/mifostenant-default"
|
url = "jdbc:mysql:thin://localhost:3306/mifostenant-default"
|
||||||
|
driver = "org.drizzle.jdbc.DrizzleDriver"
|
||||||
user = mysqlUser
|
user = mysqlUser
|
||||||
password = mysqlPassword
|
password = mysqlPassword
|
||||||
}
|
}
|
||||||
@@ -256,6 +257,7 @@ task migrateTenantDB<<{
|
|||||||
}
|
}
|
||||||
|
|
||||||
flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantDbName"
|
flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantDbName"
|
||||||
|
flyway.driver = "org.drizzle.jdbc.DrizzleDriver"
|
||||||
flyway.locations= [filePath]
|
flyway.locations= [filePath]
|
||||||
/**We use ${ as the prefix for strecthy reporting, do not want them to be interpreted by Flyway**/
|
/**We use ${ as the prefix for strecthy reporting, do not want them to be interpreted by Flyway**/
|
||||||
flyway.placeholderPrefix = "\$\${"
|
flyway.placeholderPrefix = "\$\${"
|
||||||
@@ -272,6 +274,7 @@ task showTenantDBInfo<<{
|
|||||||
}
|
}
|
||||||
|
|
||||||
flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantDbName"
|
flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantDbName"
|
||||||
|
flyway.driver = "org.drizzle.jdbc.DrizzleDriver"
|
||||||
flyway.locations= [filePath]
|
flyway.locations= [filePath]
|
||||||
flywayInfo.execute()
|
flywayInfo.execute()
|
||||||
}
|
}
|
||||||
@@ -287,6 +290,7 @@ task migrateTenantListDB<<{
|
|||||||
}
|
}
|
||||||
|
|
||||||
flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantsDbName"
|
flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantsDbName"
|
||||||
|
flyway.driver = "org.drizzle.jdbc.DrizzleDriver"
|
||||||
flyway.locations= [filePath]
|
flyway.locations= [filePath]
|
||||||
|
|
||||||
flywayMigrate.execute()
|
flywayMigrate.execute()
|
||||||
@@ -302,6 +306,7 @@ task showTenantListDBInfo<<{
|
|||||||
}
|
}
|
||||||
|
|
||||||
flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantsDbName"
|
flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantsDbName"
|
||||||
|
flyway.driver = "org.drizzle.jdbc.DrizzleDriver"
|
||||||
flyway.locations= [filePath]
|
flyway.locations= [filePath]
|
||||||
flywayInfo.execute()
|
flywayInfo.execute()
|
||||||
}
|
}
|
||||||
@@ -316,6 +321,7 @@ task repairTenantDB<<{
|
|||||||
}
|
}
|
||||||
|
|
||||||
flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantsDbName"
|
flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantsDbName"
|
||||||
|
flyway.driver = "org.drizzle.jdbc.DrizzleDriver"
|
||||||
flyway.locations= [filePath]
|
flyway.locations= [filePath]
|
||||||
flywayRepair.execute()
|
flywayRepair.execute()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user