mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
fix: don't try and match reference schema to table schema
This commit is contained in:
parent
75bee65b29
commit
5a61409e56
1 changed files with 6 additions and 6 deletions
|
@ -1057,10 +1057,10 @@ defmodule AshPostgres.MigrationGenerator do
|
|||
defp after?(
|
||||
%Operation.AddAttribute{
|
||||
attribute: %{
|
||||
references: %{table: table, destination_field: name, schema: schema}
|
||||
references: %{table: table, destination_field: name}
|
||||
}
|
||||
},
|
||||
%Operation.AddAttribute{table: table, schema: schema, attribute: %{source: name}}
|
||||
%Operation.AddAttribute{table: table, attribute: %{source: name}}
|
||||
),
|
||||
do: true
|
||||
|
||||
|
@ -1110,10 +1110,10 @@ defmodule AshPostgres.MigrationGenerator do
|
|||
do: true
|
||||
|
||||
defp after?(
|
||||
%Operation.RemoveAttribute{attribute: %{source: source}, table: table, schema: schema},
|
||||
%Operation.RemoveAttribute{attribute: %{source: source}, table: table},
|
||||
%Operation.AlterAttribute{
|
||||
old_attribute: %{
|
||||
references: %{table: table, schema: schema, destination_field: source}
|
||||
references: %{table: table, destination_field: source}
|
||||
}
|
||||
}
|
||||
),
|
||||
|
@ -1122,10 +1122,10 @@ defmodule AshPostgres.MigrationGenerator do
|
|||
defp after?(
|
||||
%Operation.AlterAttribute{
|
||||
new_attribute: %{
|
||||
references: %{table: table, schema: schema, destination_field: name}
|
||||
references: %{table: table, destination_field: name}
|
||||
}
|
||||
},
|
||||
%Operation.AddAttribute{schema: schema, table: table, attribute: %{source: name}}
|
||||
%Operation.AddAttribute{table: table, attribute: %{source: name}}
|
||||
),
|
||||
do: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue