summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20201221202252_remove_data_from_hashtags.exs
blob: 0442c3b8778e73a88e358d58f9ccc2c76aaaec83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
defmodule Pleroma.Repo.Migrations.RemoveDataFromHashtags do
  use Ecto.Migration

  def up do
    alter table(:hashtags) do
      remove_if_exists(:data, :map)
    end
  end

  def down do
    alter table(:hashtags) do
      add_if_not_exists(:data, :map, default: %{})
    end
  end
end