diff options
| author | David Siegfried <david.siegfried@uni-vechta.de> | 2024-03-19 17:47:41 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2024-03-21 11:11:22 +0100 |
| commit | 60c980a37d6b7fc03cf024b73b62294cb7d404e6 (patch) | |
| tree | ee03fe9ef93c6108a6ae936f2ab7a03347b0c55e /db | |
| parent | eee175d0187a8ebbe60b9544999b006bef5d35f2 (diff) | |
refine member-export, fixes #3841
Closes #3841
Merge request studip/studip!2711
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrations/5.5.27_remove_old_export_config_entries.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/db/migrations/5.5.27_remove_old_export_config_entries.php b/db/migrations/5.5.27_remove_old_export_config_entries.php new file mode 100644 index 0000000..c870ce6 --- /dev/null +++ b/db/migrations/5.5.27_remove_old_export_config_entries.php @@ -0,0 +1,25 @@ +<?php + +final class RemoveOldExportConfigEntries extends Migration +{ + public function description() + { + return 'Removes remnants of the old export'; + } + + public function up() + { + DBManager::get()->execute("DELETE FROM `config` WHERE `field` = 'XSLT_ENABLE'"); + DBManager::get()->execute("DELETE FROM `config` WHERE `field` = 'FOP_ENABLE'"); + } + + public function down() + { + DBManager::get()->execute("INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) + VALUES('XSLT_ENABLE', '1', 'boolean', 'global', 'global', 1510849314, 1510849314, 'Soll Export mit XSLT angeschaltet sein?')" + ); + DBManager::get()->execute("INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) + VALUES('FOP_ENABLE', '1', 'boolean', 'global', 'global', 1510849314, 1510849314, 'Soll Export mit FOP erlaubt sein?')" + ); + } +} |
