Skip to content

NAMEDATALEN not respected in migrations #3637

@domagojmedo

Description

@domagojmedo

Not sure if it's for this or EF core repo. But if your constraint name is longer than NAMEDATALEN - 1 (by default 64) it will just be truncated when creating.
But then if you want to alter anything on that constraint or update it, it will fail because it doesn't exist under the full name, it's under truncated name and EF doesn't track that.

Would it be fine to expose MaxNameLength in options so it's configurable? I know EF can't know what's NAMEDATALEN in your DB but we should be able to specify it so we can avoid EF breaking migrations with longer names

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions