constraints should consistently add, or not add, themselves to Table

Issue #2410 resolved
Mike Bayer repo owner created an issue

UniqueConstraint and PrimaryKeyConstraint both have auto-add, but ForeignKeyConstraint and CheckConstraint do not. I considered making it consistent by having none of them auto add (except Index), but seeing as I probably use UniqueConstraint in this way already and im sure lots of other people do, we can generalize the other way.

Comments (5)

  1. Mike Bayer reporter

    CheckConstraint and ForeignKeyConstraint also have a "table" argument for this purpose, this is again a little inconsistent but we should probably leave that argument in place.

  2. Log in to comment