Merge branch 'account-notes' into 'develop'
[akkoma] / priv / repo / migrations / 20191006135457_move_keys_to_separate_column.exs
index 504dde53a61ebfb72e85fd015dc81b9539055b7f..cb8d4ae9e7fbd4942870cdd03cbcbc16e476c490 100644 (file)
@@ -2,6 +2,9 @@ defmodule Pleroma.Repo.Migrations.MoveKeysToSeparateColumn do
   use Ecto.Migration
 
   def change do
-    execute("update users set keys = info->>'keys' where local", "update users set info = jsonb_set(info, '{keys}'::text[], to_jsonb(keys)) where local")
+    execute(
+      "update users set keys = info->>'keys' where local",
+      "update users set info = jsonb_set(info, '{keys}'::text[], to_jsonb(keys)) where local"
+    )
   end
 end