### Elixir version any ### Database and Version postgres ### Ecto Versions 3.14 ### Database Adapter and Versions (postgrex, myxql, etc) postgrex ### Current behavior A valid migration: ```elixir modify :name, :text, collation: "C", null: false ``` generates invalid SQL: ```sql ALTER TABLE "foo" ALTER COLUMN "name" TYPE text, ALTER COLUMN "name" SET NOT NULL COLLATE "C" ``` PostgreSQL raises **42601: syntax error at or near "COLLATE"**. The default case is subtler: ```elixir modify :name, :text, collation: "C", default: "x" ``` ```sql ALTER TABLE "foo" ALTER COLUMN "name" TYPE text, ALTER COLUMN "name" SET DEFAULT 'x' COLLATE "C" ``` This succeeds, but `COLLATE` applies to the default expression ### Expected behavior Valid syntax according to https://www.postgresql.org/docs/current/sql-altertable.html
Activity