-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: Alter Column Type general not supported if col is part of index #47636
Comments
The lack of support for this functionality makes it impossible to use the Django backend with any project that either needs to modify a column in the future, or depends on third-party apps with migrations that modify indexed columns. I'm quite disappointed that I spent time modifying my project only for it to fail. These limitations really should be called out someplace prominent. There is no mention at https://www.cockroachlabs.com/docs/stable/deploy-app-gcr.html. |
Is any work being done on this ? |
We are hard at work to rewrite the entire schema change infrastructure to make this possible. I'm hopeful we'll be able to address this, at least for cases where the schema change is not run as part of an explicit transaction ( |
Any progress on this? I just encountered this and fear that this is a problem that I will have to move for. |
@ajwerner |
I changed Charfield to TextField and it worked fine, Hope this helps :) |
Any update on this ? |
I'm running into this right now too; it would be really helpful to get this implemented asap as this is a dealbreaker for any project that needs migration support |
Currently Alter Column Type general (for alter column requiring a rewrite of the data on disk) is only supported for columns that are not part of an index.
Epic CRDB-44826
Jira issue: CRDB-4390
The text was updated successfully, but these errors were encountered: