From 815f896055f63b289f54bf8565c095a4e1ab4183 Mon Sep 17 00:00:00 2001 From: Kamil Iskra Date: Fri, 5 Nov 2021 09:51:13 -0500 Subject: [PATCH] Make necessary configs available to the front end (#1128) --- .../2021_10_27_133121_fix_confidentiality.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 database/migrations/2021_10_27_133121_fix_confidentiality.php diff --git a/database/migrations/2021_10_27_133121_fix_confidentiality.php b/database/migrations/2021_10_27_133121_fix_confidentiality.php new file mode 100644 index 00000000000..a2aa93da175 --- /dev/null +++ b/database/migrations/2021_10_27_133121_fix_confidentiality.php @@ -0,0 +1,31 @@ +update(['confidentiality' => '0']); + Configs::where('key', 'upload_processing_limit')->update(['confidentiality' => '0']); + Configs::where('key', 'public_photos_hidden')->update(['confidentiality' => '0']); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Configs::where('key', 'editor_enabled')->update(['confidentiality' => '2']); + Configs::where('key', 'upload_processing_limit')->update(['confidentiality' => '2']); + Configs::where('key', 'public_photos_hidden')->update(['confidentiality' => '2']); + } +}