]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Added a new argument to :class:`.Enum` and its base
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 2 Feb 2013 01:47:02 +0000 (20:47 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 2 Feb 2013 01:47:02 +0000 (20:47 -0500)
commitda3d817f3624d5f631956e33d92799572f47e52f
tree44f5849c205d30af1102556355e841e7ec90614d
parent096a9cec1471c56c66393ea80de787645bec2a74
Added a new argument to :class:`.Enum` and its base
:class:`.SchemaType` ``inherit_schema``.  When set to ``True``,
the type will set its ``schema`` attribute of that of the
:class:`.Table` to which it is associated.  This also occurs
during a :meth:`.Table.tometadata` operation; the :class:`.SchemaType`
is now copied in all cases when :meth:`.Table.tometadata` happens,
and if ``inherit_schema=True``, the type will take on the new
schema name passed to the method.   The ``schema`` is important
when used with the Postgresql backend, as the type results in
a ``CREATE TYPE`` statement. [ticket:2657]
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/schema.py
lib/sqlalchemy/types.py
test/sql/test_metadata.py