diff options
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrations/5.4.22_add_user_config_expiration_date.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/db/migrations/5.4.22_add_user_config_expiration_date.php b/db/migrations/5.4.22_add_user_config_expiration_date.php new file mode 100644 index 0000000..a7c3014 --- /dev/null +++ b/db/migrations/5.4.22_add_user_config_expiration_date.php @@ -0,0 +1,18 @@ +<?php +/** + * @see https://gitlab.studip.de/studip/studip/-/issues/6140 + */ +final class AddUserConfigExpirationDate extends Migration +{ + public function description() + { + return 'Creates the user config entry for the expiration date'; + } + + public function up() + { + $query = "INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`) + VALUES ('EXPIRATION_DATE', '', 'integer', 'user', 'global', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 'Expiration date of the user account')"; + DBManager::get()->exec($query); + } +} |
