diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2022-11-15 09:58:43 +0000 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2022-11-15 09:58:43 +0000 |
| commit | 87027c8a9adc08da482af5bf765e629c2aa8be45 (patch) | |
| tree | 83ee8af2306e8b9b630a9542b3ffec40b9bbc775 /db | |
| parent | a574a5c1b352b6c016cc132c561bebdbe0996f8d (diff) | |
remove unused column repeat_quantity from table resource_bookings, fixes #1142
Closes #1142
Merge request studip/studip!1158
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrations/5.3.5_remove_bookings_repeat_quantity.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/db/migrations/5.3.5_remove_bookings_repeat_quantity.php b/db/migrations/5.3.5_remove_bookings_repeat_quantity.php new file mode 100644 index 0000000..d112906 --- /dev/null +++ b/db/migrations/5.3.5_remove_bookings_repeat_quantity.php @@ -0,0 +1,21 @@ +<?php + +class RemoveBookingsRepeatQuantity extends Migration +{ + public function description() + { + return 'Remove unused column repeat_quantity from table resource_bookings'; + } + + protected function up() + { + $query = 'ALTER TABLE resource_bookings DROP COLUMN repeat_quantity'; + DBManager::get()->exec($query); + } + + protected function down() + { + $query = 'ALTER TABLE resource_bookings ADD COLUMN repeat_quantity int(2) AFTER repeat_end'; + DBManager::get()->exec($query); + } +} |
