From 909f3bcdfe36591a7aac927af2f7fb50b9ce9dc6 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 1 Jan 2022 19:49:50 -0600 Subject: Fix migration of RUM servers --- .../repo/migrations/20211218181647_combine_activities_and_objects.exs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3