Skip to content

change receipt to jsonb#237

Draft
ivegabr wants to merge 1 commit into
developfrom
chore/DV-1340-transactions-table
Draft

change receipt to jsonb#237
ivegabr wants to merge 1 commit into
developfrom
chore/DV-1340-transactions-table

Conversation

@ivegabr

@ivegabr ivegabr commented Aug 4, 2025

Copy link
Copy Markdown
Collaborator

This PR changes the column type from text to jsonb to allow indexing its keys.
Column affected: transactions -> receipt.

Before moving on with this PR, we need to adjust the code in the services that are getting data from this, like explorer, rpc-api, bizops, etc, and apply the change in the database:

ALTER TABLE transaction
ALTER COLUMN receipt TYPE JSONB
USING receipt::jsonb;

CREATE INDEX idx_receipt_status ON transaction ((receipt->>'status'));

@github-actions

github-actions Bot commented Aug 4, 2025

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@ivegabr ivegabr marked this pull request as draft August 4, 2025 13:48
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.

1 participant