From 5c4e3b0772311e028c58a0d4748d3bd213e6a4ea Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Fri, 27 Jun 2025 11:59:21 +0200 Subject: remove columns mkdate and chdate from table semester_courses, fixes #1387 Closes #1387 Merge request studip/studip!4302 --- ...e_mkdate_chdate_from_semester_courses_table.php | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 db/migrations/6.1.5_remove_mkdate_chdate_from_semester_courses_table.php 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 @@ +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); + } +} -- cgit v1.0