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

2 lines
No EOL
121 B
SQL

DROP INDEX IF EXISTS idx_files_photo_id;
CREATE INDEX IF NOT EXISTS idx_files_photo_id ON files (photo_id, file_primary);