Add a "reason" attribute to migration error to allow the caller to precisely identify why the migration check failed
Currently support migrations that fail because of a version mismatch (target server older than source); other reasons and better parsing logic will be added later on.
Type (put an x where ever applicable)
[ ] Bug fix: Link to the issue
[X] Feature (Non-breaking change)
[ ] Feature (Breaking change)
[ ] Documentation Improvement
[ ] Other
Checklist
Please put an x against the checkboxes. Write a small comment explaining if its N/A (not applicable)
[X] All the tests are passing after the introduction of new changes.
[X] Added tests respective to the part of code I have written.
[ ] Added proper documentation where ever applicable (in code and README.md).
BF-774
Proposed changes in this pull request
Type (put an
x
where ever applicable)Checklist
Please put an
x
against the checkboxes. Write a small comment explaining if itsN/A
(not applicable)Optional extra information
Tested with postgresql 9.6 and beyond.