Merge remote-tracking branch 'pleroma/develop' into cycles-router-api-routes
[akkoma] / priv / repo / migrations / 20201221202252_remove_data_from_hashtags.exs
1 defmodule Pleroma.Repo.Migrations.RemoveDataFromHashtags do
2 use Ecto.Migration
3
4 def up do
5 alter table(:hashtags) do
6 remove_if_exists(:data, :map)
7 end
8 end
9
10 def down do
11 alter table(:hashtags) do
12 add_if_not_exists(:data, :map, default: %{})
13 end
14 end
15 end