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:
commit
1fc1b0d935
|
@ -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 New Issue