You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by GitBox <gi...@apache.org> on 2019/03/15 17:46:39 UTC

[GitHub] [fineract] awasum commented on a change in pull request #550: Fineract 700 upgrade gradle - Flyway plugin Upgrade

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:
users@infra.apache.org


With regards,
Apache Git Services