Skip to content
Snippets Groups Projects
Commit cf9d9d86 authored by Valery Sizov's avatar Valery Sizov
Browse files

[Migration guide] Add note about prefering change_column_null over change_column

parent a4933772
No related branches found
No related tags found
2 merge requests!12073Add RC2 changes to 9-3-stable,!11473[Migration guide] Add a note about prefering change_column_null over change_column
Pipeline #
Loading
Loading
@@ -139,6 +139,8 @@ Adding or removing a NOT NULL clause (or another constraint) can typically be
done without requiring downtime. However, this does require that any application
changes are deployed _first_. Thus, changing the constraints of a column should
happen in a post-deployment migration.
NOTE: Avoid using `change_column` as it produces inefficient query because it re-defines
the whole column type. For example, to add a NOT NULL constraint, prefer `change_column_null `
 
## Changing Column Types
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment