Skip to content

Foreign key constraints with nullable references #40

Open
@TravisCardwell

Description

@TravisCardwell

The current API does not provide a way to annotate a table with a foreign key constraint when the column is nullable. This type of constraint is very common, as it used for optional one-to-one relations (often marked as ? or 0|1 in database software).

I implemented new functions nullableForeignKeyOnPk and nullableForeignKeyOn to support this, and I will submit a pull request.


tc-develop Documentation

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