mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-02 09:45:13 +00:00
20 lines
316 B
Elixir
20 lines
316 B
Elixir
|
defmodule Pleroma.Repo.Migrations.RemoveNonlocalExpirations do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def up do
|
||
|
statement = """
|
||
|
DELETE FROM
|
||
|
activity_expirations A USING activities B
|
||
|
WHERE
|
||
|
A.activity_id = B.id
|
||
|
AND B.local = false;
|
||
|
"""
|
||
|
|
||
|
execute(statement)
|
||
|
end
|
||
|
|
||
|
def down do
|
||
|
:ok
|
||
|
end
|
||
|
end
|