Skip to content

Suggestion: Allow (or require) foreign keys to use BigInt even if the primary uses Integer #227

@hlascelles

Description

@hlascelles

Many of us have older codebases with primary keys as integers, not bigint. ARD allows these exceptions until you get round to migrating them.

What we don't want is to allow the problem to propagate. I definitely don't want FKIDs to be integer when the primary is bigint, but I want to allow (force?) all new FKIDs to be be bigint regardless of the PKID type. This will the future big fix migration to concentrate on the primary tables only.

I am prepared to ignore for the (rare?, nearly impossible?) possibility of a very large number being put in the FKID column. That Shouldn't Happen.

Would you like a check for this, with the standard exceptions system for existing tables?

Metadata

Metadata

Assignees

No one assigned

    Labels

    false positiveAn error is reported when it shouldn't

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions