diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-02-01 20:47:02 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-02-01 20:47:02 -0500 |
commit | da3d817f3624d5f631956e33d92799572f47e52f (patch) | |
tree | 44f5849c205d30af1102556355e841e7ec90614d /lib/sqlalchemy/sql/expression.py | |
parent | 096a9cec1471c56c66393ea80de787645bec2a74 (diff) | |
download | sqlalchemy-da3d817f3624d5f631956e33d92799572f47e52f.tar.gz |
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]
Diffstat (limited to 'lib/sqlalchemy/sql/expression.py')
0 files changed, 0 insertions, 0 deletions