projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1fe9271f02859e071054b19a79ea3516d0f65086
[akkoma]
/
repo
/
migrations
/
20211125110126_force_pinned_objects_to_exist.exs
1
defmodule Pleroma.Repo.Migrations.ForcePinnedObjectsToExist do
2
use Ecto.Migration
3
4
def change do
5
execute("UPDATE users SET pinned_objects = '{}' WHERE pinned_objects IS NULL")
6
7
alter table("users") do
8
modify(:pinned_objects, :map, null: false, default: %{})
9
end
10
end
11
end