mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
fix: sort references only after other same-table ops
This commit is contained in:
parent
3e50a0d119
commit
da9d24c96f
1 changed files with 4 additions and 1 deletions
|
@ -1034,7 +1034,10 @@ defmodule AshPostgres.MigrationGenerator do
|
|||
true
|
||||
end
|
||||
|
||||
defp after?(%Operation.AlterAttribute{new_attribute: %{references: references}}, _)
|
||||
defp after?(
|
||||
%Operation.AlterAttribute{new_attribute: %{references: references}, table: table},
|
||||
%{table: table}
|
||||
)
|
||||
when not is_nil(references),
|
||||
do: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue