truncate config table on migrate to db task
This commit is contained in:
parent
dddebee047
commit
4344c5d5b9
3 changed files with 35 additions and 12 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue