Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is for them whose mifos upgrade is failed due to schema version failed. 

Panel

On this page:

Table of Contents
maxLevel3
minLevel3
printablefalse

 

It's highly recommended to take database backup before upgrading mifos x. 

At the time of upgrading mifos x to latest version if you get the error log as " Migration of schema failed. Like in the below shown example in screen shot:- 

 

You should follow below mentioned steps as mentioned below to fix the issue:- 

I am using the same example that is Migration of schema `mifostenant-default` to version 251 failed! 

Step 1) 

In this example I am upgrading to Mifos X 15.03.1v 

Go to downloaded mifos x folder i.e 

Step 2) 

Go to path: mifosplatform-15.03.1.RELEASE\database\migrations\core_db >> then to the failed version, in this example to V251

Step 3: 

Open the sql script in text editor like notepad++

Step 4:

Please copy the script one by one till the semi-colon (;), like showed in the below screen shot: 

Image Added

Step 4: For easy use - mysql I have used heide sql (http://www.heidisql.com/download.php

Follow below mentioned steps

1) Go to the failed database in this example it is `mifostenant-default` and click on it.

2) Click in query tab

3) Paste the copied script (1) from the above shown example

4) Click on > button which will run the script. 

Image Added

If the table already exists it will give the same error message. 

Image Added

Continue doing the same steps for all other scripts till the 

 

 

 

 

 

 


Related articles

Filter by label (Content by label)
showLabelsfalse
max5
spacesdocs
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("upgrade","version","mifos","to","schema","x","failed","due") and type = "page" and space = "docs"
labelsMifos X upgrade failed due to schema version