You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** (EXIT from #PID<0.98.0>) an exception was raised:
** (Spark.Error.DslError) [MyApp.Domain.Account.UserIdentity]
postgres -> identity_index_names -> account_user_identity_unique_on_strategy_and_uid_and_user_id_index:
Identity unique_on_strategy_and_uid_and_user_id has a name that is too long. Names must be 63 characters or less.
Please configure an index name for this identity in the `identity_index_names` configuration. For example:application
postgres do
identity_index_names :unique_on_strategy_and_uid_and_user_id: "a_shorter_name"
end
(ash_postgres 2.0.12) lib/verifiers/validate_identity_index_names.ex:43: anonymous fn/2 in AshPostgres.Verifiers.ValidateIdentityIndexNames.verify/1
(elixir 1.16.3) lib/enum.ex:992: anonymous fn/3 in Enum.each/2
(stdlib 5.2) maps.erl:416: :maps.fold_1/4
(elixir 1.16.3) lib/enum.ex:2540: Enum.each/2
(ash_postgres 2.0.12) lib/verifiers/validate_identity_index_names.ex:30: AshPostgres.Verifiers.ValidateIdentityIndexNames.verify/1
lib/myapp/domain/account/resources/identity.ex:1: anonymous fn/1 in
MyApp.Domain.Account.UserIdentity.__verify_spark_dsl__/1
(elixir 1.16.3) lib/enum.ex:987: Enum."-each/2-lists^foreach/1-0-"/2
lib/myapp/domain/account/resources/identity.ex:1: MyApp.Domain.Account.UserIdentity.__verify_spark_dsl__/1
The generated index account_user_identity_unique_on_strategy_and_uid_and_user_id_index is 66 characters long, while the changes introduced in AshPostgres limits indices to maximum 63 characters.
The text was updated successfully, but these errors were encountered:
After this commit on
AshPostgres
, indices generated on user identities may easily be too long.Identity module
Traceback
The generated index
account_user_identity_unique_on_strategy_and_uid_and_user_id_index
is 66 characters long, while the changes introduced inAshPostgres
limits indices to maximum 63 characters.The text was updated successfully, but these errors were encountered: