diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-10-21 14:56:39 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-10-21 14:56:39 +0700 |
commit | f726d953d59b8c4c2099a3c583e7226b99324bb9 (patch) | |
tree | c24e98d0c5e12a53bb741a8077fe4b6c8ba59ad0 /priv/repo/migrations/20191008132217_migrate_following_relationships.exs | |
parent | e37d4b2ddf7928437618d3eb7b5da678e39927cf (diff) | |
download | pleroma-f726d953d59b8c4c2099a3c583e7226b99324bb9.tar.gz pleroma-f726d953d59b8c4c2099a3c583e7226b99324bb9.zip |
Fix typos
Diffstat (limited to 'priv/repo/migrations/20191008132217_migrate_following_relationships.exs')
-rw-r--r-- | priv/repo/migrations/20191008132217_migrate_following_relationships.exs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/priv/repo/migrations/20191008132217_migrate_following_relationships.exs b/priv/repo/migrations/20191008132217_migrate_following_relationships.exs index 7f996f5a5..9d5c2648f 100644 --- a/priv/repo/migrations/20191008132217_migrate_following_relationships.exs +++ b/priv/repo/migrations/20191008132217_migrate_following_relationships.exs @@ -69,19 +69,19 @@ defmodule Pleroma.Repo.Migrations.MigrateFollowingRelationships do updated_at = now() FROM ( SELECT - follwer.id AS follower_id, - CASE follwer.local + follower.id AS follower_id, + CASE follower.local WHEN TRUE THEN - array_prepend(follwer.follower_address, array_agg(following.follower_address)) + array_prepend(follower.follower_address, array_agg(following.follower_address)) ELSE array_agg(following.follower_address) END AS following_array FROM following_relationships - JOIN users AS follwer ON follwer.id = following_relationships.follower_id - JOIN users AS FOLLOWING ON following.id = following_relationships.following_id + JOIN users AS follower ON follower.id = following_relationships.follower_id + JOIN users AS following ON following.id = following_relationships.following_id GROUP BY - follwer.id) AS following_query + follower.id) AS following_query WHERE following_query.follower_id = users.id """ |