Duplicate constraint name not allowed on Postgresql

The sql used the same constraint name for two different tables. This does not work when using postgresql.