aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2021-11-05 12:18:53 +0000
committerMoritz Strohm <strohm@data-quest.de>2021-11-05 12:18:53 +0000
commitcb26115a88a4ffb8844697b37eabbcf239cc74ec (patch)
tree5d2753906188aecfb3e28c8106f63cd9452908e0 /db
parent8affeeb532610524f245d52c2321e41a0a1d6ef7 (diff)
TIC #395: removed ACCESSKEY_ENABLED config
Diffstat (limited to 'db')
-rw-r--r--db/migrations/5.1.8_remove_access_key_enable.php27
-rw-r--r--db/studip_default_data.sql1
2 files changed, 27 insertions, 1 deletions
diff --git a/db/migrations/5.1.8_remove_access_key_enable.php b/db/migrations/5.1.8_remove_access_key_enable.php
new file mode 100644
index 0000000..c1f8624
--- /dev/null
+++ b/db/migrations/5.1.8_remove_access_key_enable.php
@@ -0,0 +1,27 @@
+<?php
+
+class RemoveAccessKeyEnable extends Migration
+{
+ public function description()
+ {
+ return 'Removes ACCESSKEY_ENABLE';
+ }
+
+ public function up()
+ {
+ $db = DBManager::get();
+ $db->exec("DELETE FROM `config_values` WHERE `field` = 'ACCESSKEY_ENABLE'");
+ $db->exec("DELETE FROM `config` WHERE `field` = 'ACCESSKEY_ENABLE'");
+ }
+
+ public function down()
+ {
+ $db = DBManager::get();
+ $db->exec(
+ "INSERT INTO `config`
+ (`field`, `type`, `value`, `range`, `description`)
+ VALUES
+ ('ACCESSKEY_ENABLE', 'boolean', '', 'user', ' Schaltet die Nutzung von Shortcuts für einen User ein oder aus, Systemdefault')"
+ );
+ }
+}
diff --git a/db/studip_default_data.sql b/db/studip_default_data.sql
index 6b1706d..6a050f7 100644
--- a/db/studip_default_data.sql
+++ b/db/studip_default_data.sql
@@ -127,7 +127,6 @@ INSERT INTO `colour_values` (`colour_id`, `description`, `value`, `mkdate`, `chd
-- Dumping data for table `config`
--
-INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('ACCESSKEY_ENABLE', '', 'boolean', 'user', '', 0, 0, 'Schaltet die Nutzung von Shortcuts für einen User ein oder aus, Systemdefault');
INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('ADMIN_COURSES_SHOW_COMPLETE', '1', 'boolean', 'global', 'global', 1462287310, 1462287310, 'Definiert, ob auf der Admin-Veranstaltunggseite der Komplett-Status für Veranstaltungen aufgeführt sein soll');
INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('ADMIN_COURSES_SIDEBAR_ACTIVE_ELEMENTS', '', 'string', 'user', '', 0, 0, 'Diese Einstellung legt fest, welche Elemente in der Seitenleiste der Veranstaltungsübersicht für Admins sichtbar sind.');
INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) VALUES('ADMISSION_PRELIM_COMMENT_ENABLE', '1', 'boolean', 'global', '', 1153814966, 1153814966, 'Schaltet ein oder aus, ob ein Nutzer im Modus \"Vorläufiger Eintrag\" eine Bemerkung hinterlegen kann');