-
Notifications
You must be signed in to change notification settings - Fork 4.2k
refactor(merchant_connector_account): change unique constraint to connector label #3091
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
Conversation
@Narayanbhat166 We cannot make this change until we have removed backwards compatibility from routing (i.e. made merchant_connector_id mandatory) and ensured that every connector in every payment intent/attempt is coupled with a merchant connector id. If we remove the constraint before the aforementioned is done, we'll run into issues (eg: for PSync, if the payment attempt only has @Aprabhat19 is working on removing the backwards compatibility and backfilling all payment intents/attempts in the DB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Add the new index before deleting the old one, in case it fails.
Type of Change
Description
This Pr changes the unique constraint of
merchant_connector_account
toconnector_label
andprofile_id
Motivation and Context
In order to allow multiple instances of the same connector to be created.
How did you test it?
connector_labels
.thrown.
Curl to create the merchant connector account.
Checklist
cargo +nightly fmt --all
cargo clippy