forked from mirrors/akkoma
Added migration for setting default tags in existing users records
This commit is contained in:
parent
2f00814475
commit
85734c0d49
|
@ -0,0 +1,9 @@
|
|||
defmodule Pleroma.Repo.Migrations.AddDefaultTagsToUser do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
execute "UPDATE users SET tags = array[]::varchar[] where tags IS NULL"
|
||||
end
|
||||
|
||||
def down, do: :noop
|
||||
end
|
Loading…
Reference in a new issue