aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-10-12 12:44:48 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-10-12 12:44:48 +0000
commitb3bed062a0b38f930a5bc73b500fbcdd71bbc375 (patch)
tree43668025a6da6b552bb4d2daaef694166b51417d /db
parent66308dbc88525f06cb4fb7923b354bcd5e558e42 (diff)
remove configuration MY_COURSES_ALLOW_TILED_DISPLAY, fixes #1654
Closes #1654 Merge request studip/studip!1065
Diffstat (limited to 'db')
-rw-r--r--db/migrations/5.3.4_remove_allow_tiled_display_configuration.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/db/migrations/5.3.4_remove_allow_tiled_display_configuration.php b/db/migrations/5.3.4_remove_allow_tiled_display_configuration.php
new file mode 100644
index 0000000..6aa898a
--- /dev/null
+++ b/db/migrations/5.3.4_remove_allow_tiled_display_configuration.php
@@ -0,0 +1,26 @@
+<?php
+final class RemoveAllowTiledDisplayConfiguration extends Migration
+{
+ protected function up()
+ {
+ $query = "DELETE config, config_values
+ FROM `config`
+ LEFT JOIN `config_values` USING(`field`)
+ WHERE `field` = 'MY_COURSES_ALLOW_TILED_DISPLAY'";
+ DBManager::get()->exec($query);
+ }
+
+ protected function down()
+ {
+ $query = "INSERT IGNORE INTO `config` (
+ `field`, `value`, `type`, `range`,
+ `section`, `description`,
+ `mkdate`, `chdate`
+ ) VALUES (
+ 'MY_COURSES_ALLOW_TILED_DISPLAY', '0', 'boolean', 'global',
+ 'MeineVeranstaltungen', 'Soll die Kachelansicht unter \"Meine Veranstaltungen\" aktiviert werden?',
+ UNIX_TIMESTAMP(), UNIX_TIMESTAMP()
+ )";
+ DBManager::get()->exec($query);
+ }
+}