INITIALLY, MATCH, dialect-specific arguments not supported by create_foreign_key() #190
Labels
Comments
Changes by Michael Bayer (@zzzeek):
|
Saif Hakim (@saifelse) wrote: Until this is released, what is the proper way to add a foreign key that is INITIALLY DEFERRED to an existing table? |
Michael Bayer (@zzzeek) wrote: if you're only targeting one database just op.execute("ALTER TABLE..."). otherwise you can go totally manually by creating a ForeignKeyConstraint() object, attach it to a Table that has the Column objects you need, then execute sqlalchemy.schema.AddConstraint(constraint) through op.execute(). still another hybrid workaround is use the internals a bit:
if it were me I'd just run the version out of git... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Migrated issue, originally created by Michael Bayer (@zzzeek)
The text was updated successfully, but these errors were encountered: