Skip to content

Unique constraint across multiple fields #544

Closed
@blackmann

Description

I'm struggling to figure out how to add a UNIQUE TOGETHER constraint/rule for create/update action.

Elaboration:

Say I have an ownership table with fields: user, page, role and I want user and page values to be unique together, how do I specify the rule?

Or perhaps the collection form can accept a unique together field which will accept a list of UNIQUE TOGETHER fields - which will be used to create the SQL constraint query.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions