awasum commented on a change in pull request #550: Fineract 700 upgrade gradle 
- Flyway plugin Upgrade
URL: https://github.com/apache/fineract/pull/550#discussion_r266085864
 
 

 ##########
 File path: fineract-provider/build.gradle
 ##########
 @@ -471,21 +471,19 @@ task showTenantDBInfo {
 }
 
 
-task migrateTenantListDB {
+task migrateTenantListDB(type: org.flywaydb.gradle.task.FlywayMigrateTask) {
     description="Migrates a Tenant List DB. Optionally can pass dbName. 
Defaults to 'mifosplatform-tenants' (Example: -PdbName=someDBname)"
-    doLast {
-        def filePath = "filesystem:$projectDir" + 
'/src/main/resources/sql/migrations/list_db'
-        def tenantsDbName = 'mifosplatform-tenants';
-        if (rootProject.hasProperty("dbName")) {
-            tenantsDbName = rootProject.getProperty("dbName")
-        }
-
-        flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantsDbName"
-        flyway.driver = "org.drizzle.jdbc.DrizzleDriver"
-        flyway.locations= [filePath]
-
-        flywayMigrate.execute()
+    def filePath = "filesystem:$projectDir" + 
'/src/main/resources/sql/migrations/list_db'
+    def tenantsDbName = 'mifosplatform-tenants';
+    if (rootProject.hasProperty("dbName")) {
+        tenantsDbName = rootProject.getProperty("dbName")
     }
+
+    flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantsDbName"
+    flyway.driver = "org.drizzle.jdbc.DrizzleDriver"
+    flyway.user = 'root'
+    flyway.password = '.....'
 
 Review comment:
   Is this password not suppose to be 'mysql'? the default password of root 
user. Maybe thats why the service cannot connect to the DB.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to