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

1 line
124 B
MySQL
Raw Normal View History

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