-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Cannot create migration to drop default value of a Postgres column #12135
Comments
Looks like SQLite doesn't support altering table schema. When it comes to MSSQL, it's a bit more complicated: http://stackoverflow.com/questions/10777353/drop-default-constraint-on-a-column-in-tsql Not sure about Oracle. |
Also trying to remove
Just using alterColumn() does nothing.
|
Same problem.
Error:
Correct SQL code:
|
What steps will reproduce the problem?
What is the expected result?
Drop the default value
What do you get instead?
Additional info
http://www.yiiframework.com/doc-2.0/yii-db-migration.html#alterColumn()-detail
https://www.postgresql.org/docs/current/static/sql-altertable.html
ALTER [ COLUMN ] column_name DROP DEFAULT
The text was updated successfully, but these errors were encountered: