]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add length parameter in `Enum`
authorFederico Caselli <cfederico87@gmail.com>
Tue, 24 Mar 2020 20:06:04 +0000 (21:06 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 6 Apr 2020 18:02:28 +0000 (20:02 +0200)
commita902660f711da0b428fd2b9abf9b281a1ef6a118
tree81bf42dd358d36b2f159c331529f15e5c6ea65e3
parent49b6c50016c8a038a6df7104560bb3945debe064
Add length parameter in `Enum`

The `Enum` type now supports the parameter `Enum.length`
to specify the length of the VARCHAR column to create when using
non native enums by setting `Enum.native_enum` to `False`

Fixes: #5183
Change-Id: Iea05dc8cd9e33959bb968b394fb10a7dd068c873
doc/build/changelog/unreleased_13/5183.rst [new file with mode: 0644]
lib/sqlalchemy/sql/sqltypes.py
test/sql/test_types.py