manual commit

This commit is contained in:
2026-04-24 21:53:14 +02:00
parent 874a90d8f8
commit 50851c0e9a
2 changed files with 21 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ WHERE p_old.`key` IN (
'users.lifecycle_restore'
)
ON DUPLICATE KEY UPDATE
`role_id` = `role_id`;
`created` = `role_permissions`.`created`;
-- Keep admin baseline complete for purge/restore actions.
INSERT INTO `role_permissions` (`role_id`, `permission_id`, `created`)
@@ -54,7 +54,7 @@ JOIN `permissions` p ON p.`key` IN (
)
WHERE r.`description` IN ('Admin', 'Administrator') OR r.`id` = 1
ON DUPLICATE KEY UPDATE
`role_id` = `role_id`;
`created` = `role_permissions`.`created`;
-- Legacy keys are retained for history but deactivated to avoid future drift.
UPDATE `permissions`