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

1 line
No EOL
163 B
SQL

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;