diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-02-28 22:53:47 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2025-02-28 22:53:47 +0000 |
| commit | e4916ecdff98276a0604ebd60ac0869463a0c3c7 (patch) | |
| tree | f1648ddfbd4b35c6f22aa760508b88f3daf393fd /db | |
| parent | 165e0d14a0fcc83babd3846ce9de46fa6fb7b843 (diff) | |
remove sykpe, fixes #4677
Closes #4677
Merge request studip/studip!3999
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrations/6.0.44_remove_skype.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/db/migrations/6.0.44_remove_skype.php b/db/migrations/6.0.44_remove_skype.php new file mode 100644 index 0000000..00654fb --- /dev/null +++ b/db/migrations/6.0.44_remove_skype.php @@ -0,0 +1,24 @@ +<?php +final class RemoveSkype extends Migration +{ + public function description() + { + return 'Removes ENABLE_SKYPE_INFO configuration'; + } + + public function up() + { + $query = "DELETE `config`, `config_values` + FROM `config` + LEFT JOIN `config_values` USING (`field`) + WHERE `field` = 'ENABLE_SKYPE_INFO'"; + DBManager::get()->exec($query); + } + + public function down() + { + $query = "INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) + VALUES ('ENABLE_SKYPE_INFO', '0', 'boolean', 'global', 'privacy', 1170242666, 1170242666, 'Ermöglicht die Eingabe / Anzeige eines Skype Namens ')"; + DBManager::get()->exec($query); + } +} |
