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
support functional indexes with op.create_index() #222
Comments
Michael Bayer (@zzzeek) wrote: Created https://bitbucket.org/zzzeek/sqlalchemy/issue/3174/support-text-sent-to-indexes on the SQLAlchemy side to fix this but for now we will work around it here. |
Michael Bayer (@zzzeek) wrote:
→ 707f2d5 |
Changes by Michael Bayer (@zzzeek):
|
Michael Bayer (@zzzeek) wrote:
→ c5be980 |
Antti Haapala wrote: This was the first Google result for Alembic functional indexes, just noting that the columns must be in a list (sequence):
otherwise one gets TypeError: 'TextClause' object is not iterable. (Took me some minutes to realize why, and well, in the |
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():
The text was updated successfully, but these errors were encountered: