Skip to content

support functional indexes with op.create_index() #222

Closed
@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Michael Bayer (@zzzeek)

op.create_index() only accepts string column names. Particularly with autogenerate and issue #197, we need to be able to put expressions in here without needing a Column object lying around. So let's allow text():

op.create_index("foo", "table", text("lower('x')"), text("lower('y')"))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions