projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make conversation-id deterministic (#154)
[akkoma]
/
priv
/
repo
/
optional_migrations
/
destructive
/
remove_null_object_type_records
/
20220806014830_remove_null_objects.exs
1
defmodule Pleroma.Repo.Migrations.RemoveNullObjects do
2
use Ecto.Migration
3
4
def up do
5
statement = """
6
DELETE FROM objects
7
WHERE (data->>'type') is null;
8
"""
9
10
execute(statement)
11
end
12
13
def down, do: :ok
14
end