mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
fix: properly order check constraints
This commit is contained in:
parent
968fb45b4e
commit
778641fb28
1 changed files with 5 additions and 2 deletions
|
@ -1002,10 +1002,13 @@ defmodule AshPostgres.MigrationGenerator do
|
|||
end
|
||||
|
||||
defp after?(
|
||||
%Operation.AddCheckConstraint{table: table, schema: schema},
|
||||
%Operation.AddCheckConstraint{table: table, schema: schema, constraint: %{name: name}},
|
||||
%Operation.RemoveCheckConstraint{
|
||||
table: table,
|
||||
schema: schema
|
||||
schema: schema,
|
||||
constraint: %{
|
||||
name: name
|
||||
}
|
||||
}
|
||||
),
|
||||
do: true
|
||||
|
|
Loading…
Reference in a new issue