Fix typos
authorEgor Kislitsyn <egor@kislitsyn.com>
Mon, 21 Oct 2019 07:56:39 +0000 (14:56 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Mon, 21 Oct 2019 07:56:39 +0000 (14:56 +0700)
priv/repo/migrations/20191008132217_migrate_following_relationships.exs

index 7f996f5a5054d6c7da8f16bcc5d1f8b8d6dd7826..9d5c2648f7202737d11db2bd62a51f5ef4b187fc 100644 (file)
@@ -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
     """