From f6afe649fecfc77090bbb0a6e97db2ff23ade90f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 28 Sep 2022 17:58:25 -0500 Subject: [PATCH] GenerateUnsetUserKeys: only select necessary user fields --- .../repo/migrations/20220905011454_generate_unset_user_keys.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/priv/repo/migrations/20220905011454_generate_unset_user_keys.exs b/priv/repo/migrations/20220905011454_generate_unset_user_keys.exs index 43bc7100bd..0d5330282b 100644 --- a/priv/repo/migrations/20220905011454_generate_unset_user_keys.exs +++ b/priv/repo/migrations/20220905011454_generate_unset_user_keys.exs @@ -14,7 +14,7 @@ def change do from(u in User, where: u.local == true, where: is_nil(u.keys), - select: u + select: struct(u, [:id, :keys]) ) Repo.stream(query)