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

2 lines
No EOL
166 B
SQL

ALTER TABLE files MODIFY COLUMN IF EXISTS photo_taken_at DATETIME AFTER photo_uid;
ALTER TABLE files ADD COLUMN IF NOT EXISTS photo_taken_at DATETIME AFTER photo_uid;