Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
autogenerate doesn't render DEFERRABLE, INITIALLY, ONUPDATE, ONDELETE of ForeignKeyConstraint() #92
Saif Hakim (@saifelse) wrote:
I don't see support for initially in create_foreign_key. Am I missing something?
Michael Bayer (@zzzeek) wrote:
@tim_mitchell - can you please provide more detail? Was this issue resolved for you and then stopped working? Can you provide specifics about the move of an FK here? the create for the FK is using the FK with the arguments you've given it and the above changeset has tests for this (see https://bitbucket.org/zzzeek/alembic/commits/0ed20805f3f32de768b9b4eb9eebc9c3e0ac7453#Ltests/test_autogenerate.pyT957)
Tim Mitchell wrote:
I have only been using alembic for about a month. All added constraints show this defect. None of your tests appear to test multiple keyword arguments as is always the case in my situation.
Here is excerpts from my code which is hopefully enough to reproduce.