Add "create_primary_key_constraint"

Issue #93 resolved
Domen Kožar
created an issue

Would be nice to have create_primary_key_constraint method on operations class.

Comments (5)

  1. Michael Bayer repo owner

    you'd combine schema.AddConstraint() with the schema.PrimaryKeyConstraint() constructs, then pass that to op.execute(). The only inconvenience is that you need to give PKConstraint actual Column objects, and it might complain if there isn't also a Table present.

  2. Log in to comment