1. Michael Bayer
  2. alembic
  3. Issues

Issues

Issue #86 invalid

options passed to Enum are not populated by automigrations

Domen Kožar
created an issue

Using:

Enum('foo', name='foo_type', native_enum=True)

will result in autogenerated:

Enum('foo')

meaning "name" and "native_enum" parameters got lost.

Comments (3)

  1. Michael Bayer repo owner

    cant reproduce - native_enum=True is the default so is unnecessary. "name" and "native_enum=False" show up in the repr() however:

    from sqlalchemy import Enum
    
    e = Enum('foo', name='foo_type', native_enum=False)
    
    print repr(e)
    

    output:

    Enum('foo', native_enum=False, name='foo_type')
    
  2. Log in to comment