-
-
Notifications
You must be signed in to change notification settings - Fork 253
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 rendering of func.XYZ(), func.XYZ(simple column), cast(<expr>), etc. within server defaults, functional indexes #197
Comments
zvell wrote: Is there a workaround that can be used while this is open? Perhaps manually changing the migration script? |
Michael Bayer (@zzzeek) wrote: yes, manually changing the migration script is what you're supposed to do. You might notice the script that's generated even has a comment encouraging this. This is why autogenerate migrations are called "candidate migrations". |
zvell wrote: Oh, yes of course. I guess I was fishing for a solution for my specific problem. I found a workaround by issuing |
zvell wrote: The same behaviour applies for other server_defaults (e.g. boolean value=False). If I manually change the migration script to
which is kind of as per the docs, I get this exception on running
|
Michael Bayer (@zzzeek) wrote: "False" isn't a SQL expression, which server_default requires. the alembic docs you refer to illustrate |
Michael Bayer (@zzzeek) wrote: the exception message is also pretty specific, it's telling you what types it expects. Guess it's not clear enough what those types are.... |
zvell wrote: You are right. The exception message was specific and clear, but I assumed I could have given |
Changes by Michael Bayer (@zzzeek):
|
Michael Bayer (@zzzeek) wrote: see zzzeek/alembic#16 which has a lot of this |
Changes by Michael Bayer (@zzzeek):
|
Migrated issue, originally created by Michael Bayer (@zzzeek)
consolidating #64, #196
The text was updated successfully, but these errors were encountered: