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

Remove unnecessary user field from geotag #1820

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alastair
Copy link
Member

@alastair alastair commented Jan 31, 2025

Issue(s)
Fixes #1036

Description
The geotag.user field just replicated the same value that was in sound.user, no need to keep it.

This PR additionally moves the relation between a sound and a geotag from the sound table to the geotag table. Because not all sounds have a geotag, we had a column which was 95% null. By adding a geotag.sound_id column to the geotag table, we can remove an entire column from Sound.
The sound_id field is marked as unique, so we can still only have one tag per sound and the query to join the two tables is more or less the same

Deployment steps:
Includes migration

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.

Remove GeoTag.user
1 participant