Skip to content
Discussion options

You must be logged in to vote

i believe that .naming_convention has to be there before the Table objects associated with the MetaData get set up. As you build Table objects etc., the naming convention applies symbols to the "name" fields of all the Constraint objects that are what cause the names to happen.

this is why SQLAlchemy docs illustrate .naming_convention only set up as a constructor keyword argument on MetaData. It has never been tested by just adding the convention after the fact like that (though should work as long as the Table objects are created after it's present).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant