aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrations/5.3.1_add_show_folder_size_config.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/db/migrations/5.3.1_add_show_folder_size_config.php b/db/migrations/5.3.1_add_show_folder_size_config.php
new file mode 100644
index 0000000..fe45a4c
--- /dev/null
+++ b/db/migrations/5.3.1_add_show_folder_size_config.php
@@ -0,0 +1,32 @@
+<?php
+
+
+class AddShowFolderSizeConfig extends Migration
+{
+ public function description()
+ {
+ return 'Adds the configuration SHOW_FOLDER_SIZE.';
+ }
+
+
+ protected function up()
+ {
+ DBManager::get()->exec(
+ "INSERT IGNORE INTO `config`
+ (`field`, `value`, `type`, `range`,
+ `section`, `mkdate`, `chdate`,
+ `description`)
+ VALUES
+ ('SHOW_FOLDER_SIZE', '1', 'boolean', 'global',
+ 'files', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(),
+ 'SHOW_FOLDER_SIZE gibt an, ob die Anzahl der Objekte (Dateien und Unterordner) in einem Ordner angezeigt werden sollen.')"
+ );
+ }
+
+ protected function down()
+ {
+ DBManager::get()->exec(
+ "DELETE FROM `config_values` WHERE `field` = 'SHOW_FOLDER_SIZE'"
+ );
+ }
+}