photoprism/internal/migrate/mysql/20220329-093000.sql

1 line
163 B
MySQL
Raw Normal View History

UPDATE files SET time_index = CASE WHEN file_missing = 0 AND deleted_at IS NULL THEN CONCAT(100000000000000 - CAST(photo_taken_at AS UNSIGNED), '-', media_id) END;