Turns out that postgres can't handle "0" as boolean, but mysql can handle "false". closes #7115#pullrequestreview-699342
Also fixed the "fix public photos"-migration, because it didn't work with migration-models :/ fixes #6177