1a04266b41f8624ea2e1890f66371921ae9a2728
[anni] / priv / repo / migrations / 20190622151019_add_group_key_to_config.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Repo.Migrations.AddGroupKeyToConfig do
6   use Ecto.Migration
7
8   def change do
9     alter table("config") do
10       add(:group, :string)
11     end
12
13     drop_if_exists(unique_index("config", :key))
14     create_if_not_exists(unique_index("config", [:group, :key]))
15   end
16 end