Skip to content

index=True is silently ignored #174

@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Michael Howitz (@icemac)

The following code:

def upgrade():
    op.add_column('user', sa.Column('foobar', sa.String(8), index=True))

produces:

ALTER TABLE "user" ADD COLUMN foobar VARCHAR(8);

index=True is silently ignored. There is no log output of INFO level or above, too.
I'd expect at least a WARNING.

I'm using alembic 0.6.3 and SQLAlchemy 0.9.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions