diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2023-11-13 09:23:07 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2023-11-13 09:23:07 +0000 |
| commit | 66518ee520fff1c1f440345dfa443e2fb6f1fbb6 (patch) | |
| tree | 97428651968ef2b1862ec860d00092ef681cd9f7 /db | |
| parent | a6d4707a62880da95174bb58a8bb1d0483d5f7e5 (diff) | |
show "Matrikelnummer" field in admin/user result table, closes #3336
Closes #3336
Merge request studip/studip!2270
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrations/5.5.6_add_matriculation_number.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/db/migrations/5.5.6_add_matriculation_number.php b/db/migrations/5.5.6_add_matriculation_number.php new file mode 100644 index 0000000..4fa0784 --- /dev/null +++ b/db/migrations/5.5.6_add_matriculation_number.php @@ -0,0 +1,28 @@ +<?php + + +class AddMatriculationNumber extends Migration +{ + public function description() + { + return 'Add auth_user_md5.matriculation_number'; + } + + protected function up() + { + $db = DBManager::get(); + $db->exec( + "ALTER TABLE `auth_user_md5` + ADD COLUMN matriculation_number VARCHAR(255) NULL DEFAULT NULL" + ); + } + + protected function down() + { + $db = DBManager::get(); + $db->exec( + "ALTER TABLE `auth_user_md5` + DROP COLUMN matriculation_number" + ); + } +} |
