diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2022-08-19 20:04:29 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-08-19 20:04:29 +0000 |
| commit | 10b62f9bd24a154b7c99cbdb8abe9fb55c4aef2c (patch) | |
| tree | 94547445e7c9e60ca2e8cb412700b687e5abea29 /db | |
| parent | 718e7331e1668bf71898e2888333ef65163f4d30 (diff) | |
Show object count for folders, closes #1392
Closes #1392
Merge request studip/studip!887
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrations/5.3.1_add_show_folder_size_config.php | 32 |
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'" + ); + } +} |
