fix: use Ecto.ParameterizedType.init/2

This commit is contained in:
Zach Daniel 2024-05-31 09:23:05 -05:00
parent 6f055845f4
commit 945019a467

View file

@ -44,7 +44,7 @@ defmodule AshSqlite.Types do
end
else
if is_atom(type) && :erlang.function_exported(type, :type, 1) do
parameterized_type(type, constraints || [])
Ecto.ParameterizedType.init(type, constraints || [])
else
type
end