Skip to content

Commit

Permalink
fix: Fix missing nulls_distinct field in old snapshots
Browse files Browse the repository at this point in the history
Old snapshots can come without the `nulls_distinct` field, because of
that we return null if the key doesn't exists
  • Loading branch information
sezaru committed Oct 31, 2023
1 parent aef7dcf commit 1e29294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/migration_generator/operation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ defmodule AshPostgres.MigrationGenerator.Operation do
option(:name, index.name),
option(:unique, index.unique),
option(:concurrently, index.concurrently),
non_nullable_option(:nulls_distinct, index.nulls_distinct),
non_nullable_option(:nulls_distinct, index[:nulls_distinct]),
option(:using, index.using),
option(:prefix, index.prefix),
option(:where, index.where),
Expand Down

0 comments on commit 1e29294

Please sign in to comment.