Also fixed the "fix public photos"-migration, because it didn't work with migration-models :/ fixes #6177