[Sqlalchemy-commits] commit/sqlalchemy: 2 new changesets
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2014-02-02 19:41:17
|
2 new commits in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/2d4b457924fa/ Changeset: 2d4b457924fa Branch: None User: zzzeek Date: 2014-02-02 20:37:43 Summary: - The behavior of :meth:`.Table.tometadata` has been adjusted such that the schema target of a :class:`.ForeignKey` will not be changed unless that schema matches that of the parent table. That is, if a table "schema_a.user" has a foreign key to "schema_b.order.id", the "schema_b" target will be maintained whether or not the "schema" argument is passed to :meth:`.Table.tometadata`. However if a table "schema_a.user" refers to "schema_a.order.id", the presence of "schema_a" will be updated on both the parent and referred tables. This is a behavioral change hence isn't likely to be backported to 0.8; it is assumed that the previous behavior is pretty buggy however and that it's unlikely anyone was relying upon it. Additionally, a new parameter has been added :paramref:`.Table.tometadata.referred_schema_fn`. This refers to a callable function which will be used to determine the new referred schema for any :class:`.ForeignKeyConstraint` encountered in the tometadata operation. This callable can be used to revert to the previous behavior or to customize how referred schemas are treated on a per-constraint basis. [ticket:2913] - rework the tests in test.sql.test_metadata, all the "tometadata" tests now under new class ToMetaDataTest Affected #: 3 files https://bitbucket.org/zzzeek/sqlalchemy/commits/4ed4266803cb/ Changeset: 4ed4266803cb Branch: None User: zzzeek Date: 2014-02-02 20:40:23 Summary: - use from_statement() for the ORM column test - with select_from(), add external order by so that Oracle orders correctly Affected #: 1 file Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |