Rank log: inactive ranks (Guardian) count as promotions to and from, demotion when lost; Guardian is staff

This commit is contained in:
Astra 2026-09-29 17:19:53 +01:00
parent 611b79cdba
commit 0af93d1eab
7 changed files with 76 additions and 24 deletions

View file

@ -7,8 +7,11 @@
-- and the in-game admin menu. Nothing writes it for ranks that lapse when an admin's `ends` passes.
--
-- kind is added, removed, promoted, demoted (compared by group immunity) or changed (same
-- immunity). old_rank/new_rank are group names ("#rank/mod"), NULL for no rank. admin_steamid 0
-- is Console. created is a wall-clock value in SimpleAdmin's Timezone, like its other tables.
-- immunity). The panel overrides it when listing changes involving an inactive rank (one marked
-- "inactive" in its site config, like Guardian): moving between an inactive rank and any other
-- rank shows as promoted either way, and losing an inactive rank shows as demoted. old_rank/new_rank are group names ("#rank/mod"), NULL for no
-- rank. admin_steamid 0 is Console. created is a wall-clock value in SimpleAdmin's Timezone, like
-- its other tables.
CREATE TABLE IF NOT EXISTS `sa_rank_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,