Commit 75ce6adc authored by kaniini's avatar kaniini
Browse files

migration: only care about Create activities

parent c7644313
Pipeline #11841 failed with stages
in 2 minutes and 56 seconds
......@@ -25,6 +25,11 @@ def up do
RETURN true;
END IF;
--- We only care about Create activities.
IF activity.data->>'type' != 'Create' THEN
RETURN true;
END IF;
--- Normalize the child object into child.
SELECT * INTO child FROM objects
INNER JOIN activities ON COALESCE(activities.data->'object'->>'id', activities.data->>'object') = objects.data->>'id'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment