add null object purger
ci/woodpecker/push/woodpecker Pipeline is pending Details

This commit is contained in:
FloatingGhost 2022-08-06 02:49:23 +01:00
parent 520c78aa13
commit 1faf54ab41
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
defmodule Pleroma.Repo.Migrations.RemoveNullObjects do
use Ecto.Migration
def up do
statement = """
DELETE FROM objects
WHERE (data->>'type') is null;
"""
execute(statement)
end
def down, do: :ok
end