Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
316B

  1. defmodule Pleroma.Repo.Migrations.RemoveNonlocalExpirations do
  2. use Ecto.Migration
  3. def up do
  4. statement = """
  5. DELETE FROM
  6. activity_expirations A USING activities B
  7. WHERE
  8. A.activity_id = B.id
  9. AND B.local = false;
  10. """
  11. execute(statement)
  12. end
  13. def down do
  14. :ok
  15. end
  16. end