Fix photos migrations

Ghost User
2017-06-28T21:15:00+02:00

Migrations were broken due to two separate merge requests !419 and !474 being merged.