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: Rename build_prices table, make fields non-nullable #162

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Dec 6, 2024

What does this PR do?

  • Changes table and column names to Postgres convention snake_case for the buildprices table
  • Updates code to reflect these fields as non-nullable

Copy link

vercel bot commented Dec 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fairhold-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 6, 2024 5:05pm

@DafyddLlyr DafyddLlyr changed the title dp/rename build prices table feat: Rename build_prices table, make fields non-nullable Dec 6, 2024
@DafyddLlyr DafyddLlyr requested a review from a team December 6, 2024 16:26
@DafyddLlyr DafyddLlyr marked this pull request as ready for review December 6, 2024 16:26
/*
Warnings:

- You are about to drop the `buildprices` table. If the table is not empty, all the data it contains will be lost.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should warnings be removed after the query is updated to use RENAME instead of DROP?

Copy link
Contributor Author

@DafyddLlyr DafyddLlyr Dec 6, 2024

Choose a reason for hiding this comment

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

Good spot thanks - yes! We should keep relevant warnings (very good for PRs) but remove redundant/incorrect ones. I'll fix this shortly 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please see ced8b00

Copy link
Collaborator

@zz-hh-aa zz-hh-aa left a comment

Choose a reason for hiding this comment

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

Thanks for tidying!

@DafyddLlyr DafyddLlyr merged commit 6312e95 into main Dec 13, 2024
5 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/rename-build-prices-table branch December 13, 2024 14:29
zz-hh-aa pushed a commit that referenced this pull request Dec 18, 2024
* feat: Rename `build_prices` table, make not null

* fix: Update code now that field in non-nullable

* fix: Drop redundant warning
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