summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20190301101154_add_default_tags_to_user.exs
blob: ea0947852ecb6df6ffbbfe87f940373e0d94f2b7 (plain)
1
2
3
4
5
6
7
8
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