truncate config table on migrate to db task

This commit is contained in:
Alexander Strizhakov 2020-01-23 17:23:02 +03:00
commit 4344c5d5b9
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
3 changed files with 35 additions and 12 deletions

View file

@ -52,6 +52,8 @@ 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;")
custom_config =
config_file
|> read_file()