Added migration for setting default tags in existing users records

This commit is contained in:
eugenijm 2019-03-01 13:25:32 +03:00
parent 2f00814475
commit 85734c0d49
1 changed files with 9 additions and 0 deletions

View File

@ -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