Closed dkuku closed 1 week ago
Hrm, we may need to revert the PR after all and introduce a command explicitly to change everything but the type.
the type returned from column_type(type, opts) is identical on 167 and 173
Thats the opts to this function:
[size: 65535, from: {:string, [size: 255]}]
167 + column_type = column_type(type, opts)
168 + from_column_type = extract_column_type(opts[:from])
169 +
170 + drop_reference_expr = drop_reference_expr(opts[:from], table, name)
171 + any_drop_ref? = drop_reference_expr != []
172 +
173 + if column_type == column_type(from_column_type, opts) do
Oh, so it would work if we extracted it properly? 🤔 Can you please send a PR?
Elixir version
Elixir 1.16.2 (compiled with Erlang/OTP 26)
Database and Version
any
Ecto Versions
master
Database Adapter and Versions (postgrex, myxql, etc)
postgrex 0.19.2
Current behavior
this migrations started to fail recently:
with error
It fails into [this branch] of the if (https://github.com/elixir-ecto/ecto_sql/blame/75ddf591fbe56977b041836079c01be298384024/lib/ecto/adapters/postgres/connection.ex#L1588) but returns
[[], [], []]
I think it suppose to be be executed the else branch. I'm assuming it was introduced in this pr because my master version from before 2 weeks was working fineExpected behavior
the migration works on 3.12.1