Merge branch 'default-tags-for-existing-users' into 'develop'

Migration for adding tags to the existing users records

See merge request pleroma/pleroma!878
This commit is contained in:
kaniini 2019-03-01 11:09:36 +00:00
commit 1fc1b0d935

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