aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-06-27 11:59:21 +0200
committerDavid Siegfried <david.siegfried@uni-vechta.de>2025-06-27 09:59:21 +0000
commit5c4e3b0772311e028c58a0d4748d3bd213e6a4ea (patch)
tree09cb06cf8c5eece8c684a8937c33c1348546bc96 /db
parent005f32fc9f1505160d2522a809667c5e01dd0f3c (diff)
remove columns mkdate and chdate from table semester_courses, fixes #1387
Closes #1387 Merge request studip/studip!4302
Diffstat (limited to 'db')
-rw-r--r--db/migrations/6.1.5_remove_mkdate_chdate_from_semester_courses_table.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/db/migrations/6.1.5_remove_mkdate_chdate_from_semester_courses_table.php b/db/migrations/6.1.5_remove_mkdate_chdate_from_semester_courses_table.php
new file mode 100644
index 0000000..e608500
--- /dev/null
+++ b/db/migrations/6.1.5_remove_mkdate_chdate_from_semester_courses_table.php
@@ -0,0 +1,24 @@
+<?php
+final class RemoveMkdateChdateFromSemesterCoursesTable extends Migration
+{
+ public function description()
+ {
+ return 'Remove mkdate and chdate from semester_courses table';
+ }
+
+ public function up()
+ {
+ $query = "ALTER TABLE `semester_courses`
+ DROP COLUMN `mkdate`,
+ DROP COLUMN `chdate`";
+ DBManager::get()->exec($query);
+ }
+
+ public function down()
+ {
+ $query = "ALTER TABLE `semester_courses`
+ ADD COLUMN `mkdate` INT(11) UNSIGNED NOT NULL DEFAULT 0,
+ ADD COLUMN `chdate` INT(11) UNSIGNED NOT NULL DEFAULT 0";
+ DBManager::get()->exec($query);
+ }
+}