From: Alexander Strizhakov Date: Thu, 23 Jan 2020 14:48:45 +0000 (+0300) Subject: restart config id after truncate X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e8e57e398f701497b9989c19c36c20fd227393ac;p=akkoma restart config id after truncate --- diff --git a/lib/mix/tasks/pleroma/config.ex b/lib/mix/tasks/pleroma/config.ex index 8098e9bab..3e76d2c97 100644 --- a/lib/mix/tasks/pleroma/config.ex +++ b/lib/mix/tasks/pleroma/config.ex @@ -53,6 +53,7 @@ defmodule Mix.Tasks.Pleroma.Config do defp do_migrate_to_db(config_file) do if File.exists?(config_file) do Ecto.Adapters.SQL.query!(Repo, "TRUNCATE config;") + Ecto.Adapters.SQL.query!(Repo, "ALTER SEQUENCE config_id_seq RESTART;") custom_config = config_file