Skip to content

Complex UniqueConstraint for tables #572

@northpowered

Description

@northpowered

Are there any variants to create complex UniqueConstraint (ex. with 2 fields), like in SQLAlchemy?

SQLAlchemy example:

__table_args__ = (
        UniqueConstraint('foo_id', 'bar_id',
                         name='_foobar_constraint'),
    )
foo_id = Column(ForeignKey('foos.id'), nullable=False)
bar_id = Column(ForeignKey('bars.id'), nullable=False)

Or maybe it can be an enhancement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions