-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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(server): Does not assign lat/lon if they are at 0,0 #2991 #3669
fix(server): Does not assign lat/lon if they are at 0,0 #2991 #3669
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a migration to fix existing data? Is that something you would be able to do? We can SQL update the data and set 0s to null on the next release.
I can try! Any hints on where to look for a previous example? |
The src/infra/migrations folder |
Here's the docs for them as well: |
Added migration file, not sure i did it right? specifically the When i transferred the migration to the dir the 0,0 entries were properly nulled out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. We don't need a down for this migration 😁
(You can leave it empty)
For anyone with this issue with imported files, here's how you perform the migration manually for docker installs: docker exec -it immich-postgres psql --password --username immich-user immich-database Enter your password, then run the following: UPDATE "exif" SET latitude = NULL, longitude = NULL WHERE latitude = 0 AND longitude = 0; |
Description
parseLatitude
andparseLongitude
Fixes #2991
Closes #3665
How Has This Been Tested?
Screenshots (if appropriate):
Checklist: