diff options
| author | Ron Lucke <lucke@elan-ev.de> | 2023-12-01 10:34:14 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2023-12-01 10:34:14 +0000 |
| commit | 109bf5b76478e31e67b10ba6e50b3e4c5946f5a5 (patch) | |
| tree | 181cec7457dfb673e7d98b3ad215c5c2ab54307e /db | |
| parent | 18f82799db8020eef7581f9299f62112f7b6e606 (diff) | |
Lernmaterialien in Courseware sortieren
Closes #3032
Merge request studip/studip!2052
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrations/5.5.8_add_pos_to_cw_units.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/db/migrations/5.5.8_add_pos_to_cw_units.php b/db/migrations/5.5.8_add_pos_to_cw_units.php new file mode 100644 index 0000000..d3e3790 --- /dev/null +++ b/db/migrations/5.5.8_add_pos_to_cw_units.php @@ -0,0 +1,27 @@ +<?php + +final class AddPosToCwUnits extends Migration +{ + public function description() + { + return 'Add field pos to table cw_units'; + } + + public function up() + { + $db = DBManager::get(); + $db->exec(" + ALTER TABLE `cw_units` + ADD COLUMN `position` INT(11) DEFAULT NULL AFTER `content_type` + "); + } + + public function down() + { + $db = DBManager::get(); + $db->exec(" + ALTER TABLE `cw_units` + DROP COLUMN `position` + "); + } +} |
