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

Fixed inconsistency in table schema #50

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Fixed inconsistency in table schema #50

merged 1 commit into from
Aug 29, 2024

Conversation

shubhagarwal03
Copy link
Contributor

@shubhagarwal03 shubhagarwal03 commented Aug 28, 2024

There was previously no primary key in the raw_token_imbalances table, and instead we had a function called record_exists that would check if (tx_hash, token_address) exists in the table.

Nothing wrong with it, but better to have consistency since the slippage_prices and fees tables use a primary key, so didn't make sense to have a function just for raw_token_imbalances.

The primary key has already been added to raw_token_imbalances.

@harisang harisang merged commit a897914 into main Aug 29, 2024
3 checks passed
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