mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
restart config id after truncate
This commit is contained in:
parent
4344c5d5b9
commit
e8e57e398f
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue