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

refactor(core): change primary key of refund table #5367

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

prajjwalkumar17
Copy link
Contributor

@prajjwalkumar17 prajjwalkumar17 commented Jul 19, 2024

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Previously our Refund table had id as PKey.
Which needs to be changed to a composite Primary key as (merchant_id, refund_id).

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Tested it by compiling the code and checking the file query/refund.rs, where id is nowhere being used.

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@prajjwalkumar17 prajjwalkumar17 added A-core Area: Core flows M-database-changes Metadata: This PR involves database schema changes labels Jul 19, 2024
@prajjwalkumar17 prajjwalkumar17 added this to the July 2024 Release milestone Jul 19, 2024
@prajjwalkumar17 prajjwalkumar17 self-assigned this Jul 19, 2024
@prajjwalkumar17 prajjwalkumar17 requested a review from a team as a code owner July 19, 2024 04:51
@prajjwalkumar17 prajjwalkumar17 marked this pull request as draft July 19, 2024 04:51
@prajjwalkumar17 prajjwalkumar17 linked an issue Jul 19, 2024 that may be closed by this pull request
@prajjwalkumar17 prajjwalkumar17 marked this pull request as ready for review July 19, 2024 05:10
@likhinbopanna likhinbopanna added this pull request to the merge queue Jul 19, 2024
Merged via the queue into main with commit c698921 Jul 19, 2024
24 of 28 checks passed
@likhinbopanna likhinbopanna deleted the db/migrations_for_v2 branch July 19, 2024 07:58
pixincreate added a commit that referenced this pull request Jul 19, 2024
* 'main' of github.com:juspay/hyperswitch: (26 commits)
  refactor(core): change primary keys in user, user_roles and roles tables (#5374)
  chore(version): 2024.07.19.1
  refactor(connector): make the `original_authorized_amount` optional for MITs with `connector_mandate_details` (#5311)
  feat(connector): Plaid connector Integration (#3952)
  feat: encryption service integration to support batch encryption and decryption (#5164)
  refactor(core): change primary key of refund table (#5367)
  chore(version): 2024.07.19.0
  chore(postman): update Postman collection files
  Docs: Updating Error codes for documentation purposes (#5314)
  fix(core): [payouts] failure of payout retrieve when token is expired (#5362)
  build: remove unused dependencies (#5343)
  refactor(blocklist): change primary key of blocklist table (#5356)
  chore: Increasing log coverage for payment method list (#5042)
  refactor(routing): Remove backwards compatibility for the routing crate (#3015)
  refactor(merchant_account): change primary key for merchant account (#5327)
  refactor(router): remove id dependency from merchant connector account, dispute and mandate (#5330)
  feat(connector): [Itau Bank] Template for payment flows (#5304)
  chore(version): 2024.07.18.0
  refactor(router): Remove the locker call in the psync flow (#5348)
  feat(router): Add support for passing the domain dynamically in the session call (#5347)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core flows M-database-changes Metadata: This PR involves database schema changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: change primary key of refund table for v2
4 participants