Issues

Issue #93 resolved

Add "create_primary_key_constraint"

Domen Kožar
created an issue

Would be nice to have create_primary_key_constraint method on operations class.

Comments (5)

  1. Mike 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