]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- the "foreign_key" attribute on Column and ColumnElement in general
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 8 Oct 2006 02:46:40 +0000 (02:46 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 8 Oct 2006 02:46:40 +0000 (02:46 +0000)
commit51f16d14980c4a061ea3e224c52acf91008f0b20
tree5e713ade593621eefe9234b47945595248d39414
parent758828ed544966cd78524f450f877be5b789fee4
- the "foreign_key" attribute on Column and ColumnElement in general
    is deprecated, in favor of the "foreign_keys" list/set-based attribute,
    which takes into account multiple foreign keys on one column.
    "foreign_key" will return the first element in the "foreign_keys" list/set
    or None if the list is empty.
- added a user test to the relationships test, testing various new things this
change allows
CHANGES
lib/sqlalchemy/databases/mysql.py
lib/sqlalchemy/databases/postgres.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/schema.py
lib/sqlalchemy/sql.py
test/engine/reflection.py
test/orm/relationships.py