Skip to content

Fixes for the postgres error: column play_freq does not exist#21

Merged
AyBruno merged 1 commit intomainfrom
fix-postgresql-play_freq-err
Jun 6, 2024
Merged

Fixes for the postgres error: column play_freq does not exist#21
AyBruno merged 1 commit intomainfrom
fix-postgresql-play_freq-err

Conversation

@AyBruno
Copy link
Collaborator

@AyBruno AyBruno commented Jun 6, 2024

Drizzle orm doesn't handle column name aliasing in views correctly, so the column can't be named 'rotation' instead it must be named 'play_freq'. I updated this and pushed the migration to the prod db.

I have also commented out logic that was making use of the view for now just to unblock the rest of the team as the $dynamic() queries do not work the we thought they did when we wrote the album plays feature.

Drizzle orm doesn't handle column name aliasing in views correctly, so the column can't be named rotation
@AyBruno AyBruno requested review from JacksonMeade and dvdokkum June 6, 2024 01:38
Copy link
Contributor

@JacksonMeade JacksonMeade left a comment

Choose a reason for hiding this comment

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

Leaving an approving review because this appears to solve the issue if removing the view is assumed to do so, and its blocking. Let me know if you’d like support in developing that add to album backend code over slack.

Copy link
Member

@dvdokkum dvdokkum left a comment

Choose a reason for hiding this comment

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

ship it

@jakebromberg
Copy link
Member

+1

@AyBruno
Copy link
Collaborator Author

AyBruno commented Jun 6, 2024

Sounds good! The view still exists, I just renamed the column to not use an alias. I'm not using the view within the flowsheet service though because of that separate $dynamic() issue.

@AyBruno AyBruno merged commit 824c856 into main Jun 6, 2024
@AyBruno AyBruno deleted the fix-postgresql-play_freq-err branch August 26, 2024 02:40
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