1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Repo.Migrations.DeprecateQuack do
11 |> ConfigDB.get_all_by_group()
12 |> Enum.each(&ConfigDB.delete/1)
14 logger_config = ConfigDB.get_by_group_and_key(:logger, :backends)
16 if not is_nil(logger_config) do
17 %{value: backends} = logger_config
18 new_backends = backends -- [Quack.Logger]
19 {:ok, _} = ConfigDB.update_or_create(%{group: :logger, key: :backends, value: new_backends})