haskell-webapps
haskell-webapps copied to clipboard
Setup Postgres DB
- How to handle PG specific constraints & triggers that work well with the automatic migration that Persistent does?
- Can Persistent automatically create FK constraints in the schema?
Can Persistent automatically create FK constraints in the schema?
Yes.
@wz1000 do take a look at https://github.com/vacationlabs/haskell-webapps/blob/master/ServantOpaleye/db/schema.sql and https://vacationlabs.github.io/haskell-webapps/ServantOpaleye/db/schema_spy/
@wz1000 has this been closed by #30