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

fix: add new columns in schema.sql #469

Merged
merged 7 commits into from
Jan 7, 2025
Merged

fix: add new columns in schema.sql #469

merged 7 commits into from
Jan 7, 2025

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Nov 4, 2024

Fix #468

Updated schema.sql proposals to match with production database state

Added missing columns:

  • scores_total_value
  • vp_value_by_strategy

Added missing DEFAULT to columns with default

Added missing INDEX

Added notes about some discrepancies with production database schema

@wa0x6e wa0x6e requested a review from ChaituVR November 4, 2024 05:03
@wa0x6e wa0x6e changed the title fix: add new columns in schema.sq fix: add new columns in schema.sql Nov 4, 2024
@wa0x6e wa0x6e marked this pull request as ready for review November 4, 2024 05:03
@wa0x6e wa0x6e mentioned this pull request Nov 18, 2024
3 tasks
@wa0x6e
Copy link
Contributor Author

wa0x6e commented Nov 30, 2024

Any updates on this one ? Some tests are failing without this

@ChaituVR
Copy link
Member

As far as I remember @bonustrack asked us to wait, but I'm not sure exactly. Do you think we can proceed? @bonustrack

@bonustrack
Copy link
Member

I've changed the new types on the proposals table to be:
image
If you can update it, then all good for me. Later I'll also add some types on the votes table

Copy link

codecov bot commented Dec 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Additional details and impacted files

📢 Thoughts on this report? Let us know!

@wa0x6e
Copy link
Contributor Author

wa0x6e commented Dec 1, 2024

Updated

Copy link
Member

@ChaituVR ChaituVR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@wa0x6e wa0x6e requested a review from ChaituVR January 7, 2025 07:59
scores_total DECIMAL(64,30) NOT NULL,
scores_updated INT(11) NOT NULL,
scores_total_value DECIMAL(64,30) NOT NULL DEFAULT '0.000000000000000000000000000000',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you pick this decimal value @bonustrack 😅

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this default size can increase our DB size no?

Copy link
Member

@ChaituVR ChaituVR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck

@wa0x6e wa0x6e merged commit 640b7e5 into master Jan 7, 2025
4 checks passed
@wa0x6e wa0x6e deleted the fix-update-schema-sql branch January 7, 2025 09:36
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.

fix: update schema.sql to reflect new columns
3 participants