1 defmodule Pleroma.Repo.Migrations.OnlyExpireCreates do
7 activity_expirations a_exp USING activities a, objects o
9 a_exp.activity_id = a.id AND (o.data->>'id') = COALESCE(a.data->'object'->>'id', a.data->>'object')
10 AND (a.data->>'type' != 'Create' OR o.data->>'type' != 'Note');