diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-11-25 17:31:44 -0600 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-12-02 10:43:22 -0600 |
commit | e8a4062d9dc042253adc05f2ab964bbd468ace12 (patch) | |
tree | a310a8f656e385bb086095458f7074f0fe980bb6 /docs/configuration/howto_database_config.md | |
parent | a82ba66662fdcdccf0de384b0f57dd20bef0fd9d (diff) | |
download | pleroma-e8a4062d9dc042253adc05f2ab964bbd468ace12.tar.gz pleroma-e8a4062d9dc042253adc05f2ab964bbd468ace12.zip |
Document how to delete individual configuration groups and completely reset the config without SQL
Diffstat (limited to 'docs/configuration/howto_database_config.md')
-rw-r--r-- | docs/configuration/howto_database_config.md | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/docs/configuration/howto_database_config.md b/docs/configuration/howto_database_config.md index 9ed4d6cdd..d85b46bd1 100644 --- a/docs/configuration/howto_database_config.md +++ b/docs/configuration/howto_database_config.md @@ -140,14 +140,24 @@ If you encounter a situation where the server cannot run properly because of an e.g., here is an example showing a minimal configuration in the database. Only the `config :pleroma, :instance` settings are in the table: ``` -psql -d pleroma_dev -pleroma_dev=# select * from config; - id | key | value | inserted_at | updated_at | group -----+-----------+------------------------------------------------------------+---------------------+---------------------+---------- - 1 | :instance | \x836c0000000168026400046e616d656d00000007426c65726f6d616a | 2020-07-12 15:33:29 | 2020-07-12 15:33:29 | :pleroma -(1 row) -pleroma_dev=# delete from config where key = ':instance' and group = ':pleroma'; -DELETE 1 +$ mix pleroma.config keylist +The following configuration keys are set in ConfigDB: + +- instance + +``` + +``` +$ mix pleroma.config show instance +config :pleroma, :instance, [name: "MyPleroma", description: "A fun place to hang out!", notify_email: "no-reply@mypleroma.com", email: "admin@mypleroma.com", account_activation_required: true] + +``` + +To delete the saved settings for `:instance`: + +``` +$ mix pleroma.config keydel instance +instance deleted from the ConfigDB. ``` Now the `config :pleroma, :instance` settings have been removed from the database. |