mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
fix: don't traverse new types for storage type
This commit is contained in:
parent
77d035b326
commit
53bb5941e8
1 changed files with 1 additions and 8 deletions
|
@ -2732,14 +2732,7 @@ defmodule AshPostgres.MigrationGenerator do
|
|||
defp migration_type(other, constraints) do
|
||||
type = Ash.Type.get_type(other)
|
||||
|
||||
if Ash.Type.NewType.new_type?(type) do
|
||||
migration_type(
|
||||
Ash.Type.NewType.subtype_of(type),
|
||||
Ash.Type.NewType.constraints(type, constraints)
|
||||
)
|
||||
else
|
||||
migration_type_from_storage_type(Ash.Type.storage_type(other, constraints))
|
||||
end
|
||||
migration_type_from_storage_type(Ash.Type.storage_type(other, constraints))
|
||||
end
|
||||
|
||||
defp migration_type_from_storage_type(:string), do: :text
|
||||
|
|
Loading…
Reference in a new issue