yesodweb/persistent

Postgres migrations should not trigger if the unique key is too long

Aperta

#1515 aperta il 29 ago 2023

 (2 commenti) (0 reazioni) (0 assegnatari)Haskell (302 fork)auto 404
Postgresbuggood first issue

Metriche repository

Star
 (484 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

A table with a long uniqueness key will trigger a migration, but Postgres will silently truncate it to the original length. persistent-postgresql's migrations should truncate the name of a constraint before checking if it needs to be renamed.

Guida contributor