Skip to content

Changing column type drops autoincrement #413

@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Corwin Tanner

If you alter the type of a column that has autoincrement=True, the resulting revision produces an alter_column operation without the autoincrement argument like so:

op.alter_column('table', 'column', existing_type=mysql.BIGINT(display_width=20, unsigned=True), type_=mysql.INTEGER(unsigned=True))

This produces an ALTER statement that removes the AUTO_INCREMENT property of the column.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions