Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index=True is silently ignored #174

Closed
sqlalchemy-bot opened this issue Feb 10, 2014 · 4 comments
Closed

index=True is silently ignored #174

sqlalchemy-bot opened this issue Feb 10, 2014 · 4 comments
Labels
bug Something isn't working op directives

Comments

@sqlalchemy-bot
Copy link

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.

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • added labels: op directives

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

Create index in add_column if requested

Fixes #174

5d9ea4b

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

8cf1620

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • changed status to closed

@sqlalchemy-bot sqlalchemy-bot added op directives bug Something isn't working labels Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working op directives
Projects
None yet
Development

No branches or pull requests

1 participant