Skip to content

Commit c30eab5

Browse files
committed
fix: sort snapshot JSON keys when recording drop_table opt-out
1 parent 81a6a55 commit c30eab5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/migration_generator/migration_generator.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3248,6 +3248,7 @@ defmodule AshPostgres.MigrationGenerator do
32483248
|> File.read!()
32493249
|> Jason.decode!(keys: :atoms!)
32503250
|> Map.put(:drop_table_opted_out, true)
3251+
|> to_ordered_object()
32513252
|> Jason.encode!(pretty: true)
32523253
|> then(&File.write!(path, &1))
32533254
end

0 commit comments

Comments
 (0)