We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab8b5e3 commit f8e3295Copy full SHA for f8e3295
1 file changed
lib/ecto/migration.ex
@@ -1028,6 +1028,12 @@ defmodule Ecto.Migration do
1028
1029
See `add/3` for more information on supported types.
1030
1031
+ If you want to modify a column without changing its type,
1032
+ such as adding or dropping a null constraints, consider using
1033
+ the `execute/2` command with the relevant SQL command instead
1034
+ of `modify/3`, if supported by your database. This may avoid
1035
+ redundant type updates and be more efficient.
1036
+
1037
## Examples
1038
1039
alter table("posts") do
0 commit comments