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;
--- We only care about Create activities.
IF>>'type' != 'Create' THEN
RETURN true;
--- Normalize the child object into child.
SELECT * INTO child FROM objects
INNER JOIN activities ON COALESCE(>'object'->>'id',>>'object') =>>'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