Merge branch 'default-tags-for-existing-users' into 'develop'
Migration for adding tags to the existing users records See merge request pleroma/pleroma!878
Dieser Commit ist enthalten in:
Commit
1fc1b0d935
9
priv/repo/migrations/20190301101154_add_default_tags_to_user.exs
Normale Datei
9
priv/repo/migrations/20190301101154_add_default_tags_to_user.exs
Normale Datei
@ -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
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren