Skip to content

Add option for disabling automatic addition of constraint/indexes to the table #13048

Description

@CaselIT

Describe the use case

Add a flag in the constraints and index to prevent them from automatically being added to the table collections.

They can be added manually either by providing them to the table constructor or using the table methods to add constraints

Databases / Backends / Drivers targeted

Any

Example Use

UniqueConstraint(..., attach_to_table=False)

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    schemathings related to the DDL related objects like Table, Column, CreateIndex, etc.use casenot really a feature or a bug; can be support for new DB features or user use cases not anticipated

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions