Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(db migrations): fix subid db #836

Merged
merged 3 commits into from
May 4, 2021

Conversation

vijayg10
Copy link
Contributor

@vijayg10 vijayg10 commented May 3, 2021

Issue:
The subIdType field in quoteParty table is currently with wrong datatype and also it is referring the partyType field as foreign key which is not as per the specification.

Fix:
Changed the datatype of partySubIdOrTypeId in quoteParty table
Removed the foreignkey reference

Breaking Changes:
The datatype of the subId field in the quoteParty table is changed from integer to string.
So the upgrade should be fine, but when downgrading if a non-integer value of the subId exists in the database then it may break the downgrade process.

@vijayg10 vijayg10 self-assigned this May 3, 2021
@vijayg10 vijayg10 changed the title Feature/fix subid db feat(db migrations): fix subid db May 3, 2021
Copy link
Member

@mdebarros mdebarros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@vijayg10 vijayg10 merged commit de5077a into mojaloop:master May 4, 2021
@vijayg10 vijayg10 deleted the feature/fix-subid-db branch May 4, 2021 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants