diff options
author | Alex S <alex.strizhakov@gmail.com> | 2019-06-23 08:16:16 +0300 |
---|---|---|
committer | Alex S <alex.strizhakov@gmail.com> | 2019-06-23 08:16:16 +0300 |
commit | 982cad0268898851ff87187eaf0d0b7011b1c96a (patch) | |
tree | 245e883263cfe317bb16f38d98ef83c9c8fc8fa0 /priv/repo | |
parent | 410add1c30d230e86c22de4e54bb9999de980b16 (diff) | |
download | pleroma-982cad0268898851ff87187eaf0d0b7011b1c96a.tar.gz pleroma-982cad0268898851ff87187eaf0d0b7011b1c96a.zip |
support for config groups
Diffstat (limited to 'priv/repo')
-rw-r--r-- | priv/repo/migrations/20190622151019_add_group_key_to_config.exs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/priv/repo/migrations/20190622151019_add_group_key_to_config.exs b/priv/repo/migrations/20190622151019_add_group_key_to_config.exs new file mode 100644 index 000000000..d7a3785d0 --- /dev/null +++ b/priv/repo/migrations/20190622151019_add_group_key_to_config.exs @@ -0,0 +1,12 @@ +defmodule Pleroma.Repo.Migrations.AddGroupKeyToConfig do + use Ecto.Migration + + def change do + alter table("config") do + add(:group, :string) + end + + drop(unique_index("config", :key)) + create(unique_index("config", [:group, :key])) + end +end |