Closed lngr closed 2 years ago
Postgres automatically truncates index names longer than its internal NAMEDATALEN constant.
NOTICE: identifier "..." will be truncated to "..."
This breaks schema migration, because the new name will be truncated again and the following error is thrown:
Npgsql.PostgresException (0x80004005): 42P07: relation "...« already exists
This PR adds a check whether the truncated names are equal before generating a table delta.
Postgres automatically truncates index names longer than its internal NAMEDATALEN constant.
This breaks schema migration, because the new name will be truncated again and the following error is thrown:
This PR adds a check whether the truncated names are equal before generating a table delta.