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

feat(db): make percentage column NOT NULL and add DEFAULT 0 #50

Merged
merged 2 commits into from
Dec 22, 2024

Conversation

almog8k
Copy link
Contributor

@almog8k almog8k commented Dec 22, 2024

Question Answer
Bug fix
New feature
Breaking change
Deprecations
Documentation
Tests added
Chore

BREAKING CHANGE:

  • The percentage column is now NOT NULL. This will cause failures in any code attempting to insert or update rows with a null value for percentage.
  • Existing data has been migrated to set null values to 0.
  • A DEFAULT constraint of 0 has been added, altering the behavior of inserts when percentage is not specified.

Applications relying on nullable percentage values or handling null explicitly must be updated to comply with these changes.

BREAKING CHANGE:
- The `percentage` column is now NOT NULL. This will cause failures in any code attempting to insert or update rows with a null value for `percentage`.
- Existing data has been migrated to set null values to 0.
- A DEFAULT constraint of 0 has been added, altering the behavior of inserts when `percentage` is not specified.

Applications relying on nullable `percentage` values or handling null explicitly must be updated to comply with these changes.
Copy link

@alebinson alebinson left a comment

Choose a reason for hiding this comment

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

Looks OK

@almog8k almog8k merged commit 2690186 into master Dec 22, 2024
9 checks passed
@almog8k almog8k deleted the task-percentage branch December 22, 2024 13:18
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.

4 participants