photoprism/internal/migrate/sqlite3/20220329-071000.sql

1 line
No EOL
124 B
SQL

UPDATE files SET photo_taken_at = (SELECT taken_at_local FROM photos WHERE photos.id = photo_id) WHERE photo_id IS NOT NULL;