yesodweb/persistent

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

Open

#1,515 opened on Aug 29, 2023

 (2 comments) (0 reactions) (0 assignees)Haskell (302 forks)auto 404
Postgresbuggood first issue

Repository metrics

Stars
 (484 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide