From a1f81c709937ec086c9c38ab0d08ae9e044d1ef5 Mon Sep 17 00:00:00 2001 From: Thomas Hackl Date: Mon, 10 Mar 2025 11:19:20 +0000 Subject: Resolve "check_admission Cronjob kaputt" Closes #5269 Merge request studip/studip!4037 --- db/migrations/6.0.45_add_userfilter_namespaces.php | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 db/migrations/6.0.45_add_userfilter_namespaces.php diff --git a/db/migrations/6.0.45_add_userfilter_namespaces.php b/db/migrations/6.0.45_add_userfilter_namespaces.php new file mode 100644 index 0000000..bb6de8e --- /dev/null +++ b/db/migrations/6.0.45_add_userfilter_namespaces.php @@ -0,0 +1,40 @@ +execute( + "UPDATE `userfilter_fields` + SET `type` = CONCAT('UserFilterFields\\\', `type`) + WHERE `type` IN (:types)", + ['types' => $types] + ); + + // Special handling for datafield entries which have an ID appended to the type name: + DBManager::get()->execute( + "UPDATE `userfilter_fields` + SET `type` = CONCAT('UserFilterFields\\\', `type`) + WHERE `type` LIKE :type", + ['type' => 'DatafieldCondition_%'] + ); + } +} -- cgit v1.0