]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The Postgresql :class:`.postgresql.ENUM` type will emit a
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Mar 2015 15:41:52 +0000 (11:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Mar 2015 15:41:52 +0000 (11:41 -0400)
commit71b8df2e5319773008e83f784543a716a80d7511
tree34be669b9a518d7dc6f52c043a24597498dedc36
parent710021d22e8a5a053e1c4edc4a30612f6e10b83e
- The Postgresql :class:`.postgresql.ENUM` type will emit a
DROP TYPE instruction when a plain ``table.drop()`` is called,
assuming the object is not associated directly with a
:class:`.MetaData` object.   In order to accomodate the use case of
an enumerated type shared between multiple tables, the type should
be associated directly with the :class:`.MetaData` object; in this
case the type will only be created at the metadata level, or if
created directly.  The rules for create/drop of
Postgresql enumerated types have been highly reworked in general.
fixes #3319
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/sql/ddl.py
lib/sqlalchemy/sql/sqltypes.py
test/dialect/postgresql/test_types.py
test/sql/test_types.py