aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2022-01-01 19:49:50 -0600
committerAlex Gleason <alex@alexgleason.me>2022-01-01 19:49:50 -0600
commit909f3bcdfe36591a7aac927af2f7fb50b9ce9dc6 (patch)
tree3ca3ae1df8446fdffbd594436f6b8b1fe4851022
parentbf85d69ad9a369346408fb7242a6829c4c50af4a (diff)
downloadpleroma-909f3bcdfe36591a7aac927af2f7fb50b9ce9dc6.tar.gz
Fix migration of RUM servers
-rw-r--r--priv/repo/migrations/20211218181647_combine_activities_and_objects.exs4
1 files changed, 3 insertions, 1 deletions
diff --git a/priv/repo/migrations/20211218181647_combine_activities_and_objects.exs b/priv/repo/migrations/20211218181647_combine_activities_and_objects.exs
index 09eb10a58..92ede0934 100644
--- a/priv/repo/migrations/20211218181647_combine_activities_and_objects.exs
+++ b/priv/repo/migrations/20211218181647_combine_activities_and_objects.exs
@@ -43,7 +43,9 @@ defmodule Pleroma.Repo.Migrations.CombineActivitiesAndObjects do
)
# Copy all activities into the newly formatted objects table
- execute("INSERT INTO objects (SELECT * FROM activities)")
+ execute(
+ "INSERT INTO objects (id, data, local, actor, recipients, inserted_at, updated_at) SELECT id, data, local, actor, recipients, inserted_at, updated_at FROM activities"
+ )
# Update notifications foreign key
execute("alter table notifications drop constraint notifications_activity_id_fkey")