Additionally, Flop might want to change its own interface to mirror this change (e.g. from ecto_type: {:parameterized, Ecto.Enum, Ecto.Enum.init(values: [:one, :two])} to ecto_type: {:parameterized, {Ecto.Enum, Ecto.Enum.init(values: [:one, :two])}}), but my goal here was to just unblock upgrading to ecto 3.12
Ecto 3.12 changed internal representation of parameterized types. This PR contains the minimal changes to fix incompatibility. The change is backwards compatible as
Ecto.ParameterizedType.init/2
existed before.Additionally, Flop might want to change its own interface to mirror this change (e.g. from
ecto_type: {:parameterized, Ecto.Enum, Ecto.Enum.init(values: [:one, :two])}
toecto_type: {:parameterized, {Ecto.Enum, Ecto.Enum.init(values: [:one, :two])}}
), but my goal here was to just unblock upgrading to ecto 3.12