qb_akkoma/priv/repo/migrations/20200901061256_ensure_bio_is_string.exs

8 lines
166 B
Elixir
Raw Normal View History

defmodule Pleroma.Repo.Migrations.EnsureBioIsString do
use Ecto.Migration
def change do
execute("update users set bio = '' where bio is null", "")
end
end