Closed affanv14 closed 3 weeks ago
The changes involve a database migration script for the fills
table in a PostgreSQL database. The migration modifies the affiliateRevShare
column, changing its data type from string to decimal in the up
function, ensuring it is non-nullable with a default value of 0. In the down
function, the column is reverted to a string type, also non-nullable, with a default value of '0'. This process facilitates the type adjustment during migrations.
File | Change Summary |
---|---|
indexer/packages/postgres/src/db/migrations/migration_files/20240910101410_change_fills_affiliaterevshare_type.ts | Modified affiliateRevShare column in fills table: changed from string to decimal in up function, reverted to string in down function. |
In the database, a change so bright,
From string to decimal, a wondrous sight!
Affiliate shares, now precise and clear,
With defaults set, there's nothing to fear.
Hopping through migrations, we dance with glee,
A smoother flow for all, oh joy, oh me! 🐇✨
Changelist
[Describe or list the changes made in this PR]
Test Plan
[Describe how this PR was tested (if applicable)]
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.Summary by CodeRabbit
New Features
affiliateRevShare
column in thefills
table to improve data accuracy by changing its type to decimal.Bug Fixes
affiliateRevShare
column is not nullable and has a default value of 0 for better data integrity.