Skip to content

Commit

Permalink
chore: fix for recently added source renaming handling
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Feb 19, 2025
1 parent 2c74df3 commit 866e5a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/migration_generator/migration_generator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2312,8 +2312,7 @@ defmodule AshPostgres.MigrationGenerator do
end
end)

(renaming_to_source || old_attribute.source) ==
attribute.source &&
if (renaming_to_source || old_attribute.source) == attribute.source do
attributes_unequal?(
old_attribute,
attribute,
Expand All @@ -2322,6 +2321,7 @@ defmodule AshPostgres.MigrationGenerator do
snapshot,
not is_nil(renaming_to_source)
)
end
end
)}
end)
Expand Down Expand Up @@ -2537,7 +2537,7 @@ defmodule AshPostgres.MigrationGenerator do

right =
if ignore_names? do
Map.drop(left, [:source, :name])
Map.drop(right, [:source, :name])
else
right
end
Expand Down

0 comments on commit 866e5a2

Please sign in to comment.