Added constraint existence check
Merge pull request #226 from stefk/postgres-migration-fix

Added constraint existence check in postgres migration