This will probably be an obvious answer, but I'm struggling to figure out how to add a partial index using an Alembic (0.5.0) revision.
from alembic import op import sqlalchemy as sa def upgrade(): op.create_index( 'geocoded', 'locations', ['coordinates'], postgresql_where=locations.coordinates != Null") def downgrade(): op.drop_index("geocoded") Isn't working – is it valid to pass that keyword to create_index, and if so, what string should I be passing? -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.