diff options
| author | Murtaza Sultani <sultani@data-quest.de> | 2025-09-05 09:54:01 +0200 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2025-09-05 09:54:01 +0200 |
| commit | 3e4214d86aa0980458abba716316639987ac8995 (patch) | |
| tree | 64668511c55ffce94b16f41ec5324a82b976cfa7 /db/migrations | |
| parent | a70127011f09d2f98a874cdc1468a73d36ff8721 (diff) | |
Resolve "Forum3: Forumskonfigurationen von Veranstaltungskategorien entfernen"
Closes #5794
Merge request studip/studip!4415
Diffstat (limited to 'db/migrations')
| -rw-r--r-- | db/migrations/6.1.16_remove_forum_configurations_from_sem_classes_table.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/db/migrations/6.1.16_remove_forum_configurations_from_sem_classes_table.php b/db/migrations/6.1.16_remove_forum_configurations_from_sem_classes_table.php new file mode 100644 index 0000000..05fabd2 --- /dev/null +++ b/db/migrations/6.1.16_remove_forum_configurations_from_sem_classes_table.php @@ -0,0 +1,22 @@ +<?php + +final class RemoveForumConfigurationsFromSemClassesTable extends Migration +{ + public function up() + { + DBManager::get()->exec(" + ALTER TABLE `sem_classes` + DROP COLUMN `write_access_nobody`, + DROP COLUMN `topic_create_autor` + "); + } + + public function down() + { + DBManager::get()->exec(" + ALTER TABLE `sem_classes` + ADD COLUMN `write_access_nobody` TINYINT(3) UNSIGNED NOT NULL AFTER `show_browse`, + ADD COLUMN `topic_create_autor` TINYINT(3) UNSIGNED NOT NULL AFTER `write_access_nobody` + "); + } +} |
