From 9f7d6c931ea31e8f676f136ca6bd89d951c2f724 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Fri, 23 Oct 2020 18:25:08 +0200 Subject: [PATCH] add a script to import config --- bin/import_config.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bin/import_config.php diff --git a/bin/import_config.php b/bin/import_config.php new file mode 100644 index 0000000..f2fbd14 --- /dev/null +++ b/bin/import_config.php @@ -0,0 +1,24 @@ +prepare('UPDATE oc_appconfig SET configvalue=:value WHERE configkey=:key and appid=:appId'); + +foreach ($config as $key => $value) { + $stmt->execute([ + 'appId' => 'side_menu', + 'key' => $key, + 'value' => $value, + ]); +}