Skip to content

new op.f() construct not rendered correctly within an Index #194

@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Iuri de Silvio (@iurisilvio)

I know it is difficult to fix these bogus indexes, but they are failing my migration.

My upgrade drop my index and create a new one, maybe because names didn't match:

    op.create_index('op.f('ix_residencial_Categoria TV')', 'residencial', ['Categoria TV'], unique=False)
    op.drop_index('ix_residencial_desembolso_tv', table_name='residencial')

The downgrade just revert the change, with the same error. You probably have to escape the quotes or use double quotes instead.

It happens with 0.6.4. The 0.6.3 generates bogus indexes but at least doesn't break with SyntaxError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions