Add optional name history migration for sa_players_ips
SimpleAdmin upserts sa_players_ips on (steamid, address), so a rename on the same IP overwrites the old name. sql/players-ips-name-history.sql adds name to the primary key (binary collation, NOT NULL), so every name a SteamID joins with is kept and shows on its player page and in name search. SimpleAdmin's IP cache keeps only the newest row per IP, so its multi-account and IP-ban checks are unchanged. The file includes a revert.
This commit is contained in:
parent
b579941964
commit
657ead4c5a
2 changed files with 38 additions and 0 deletions
|
|
@ -82,6 +82,14 @@ SimpleAdmin groups have no display name or colour, so those come from a site con
|
|||
`"supporter": true` are listed apart from staff and can't sign in unless they hold
|
||||
`@css/generic`.
|
||||
|
||||
### Name history (optional)
|
||||
|
||||
SimpleAdmin keeps one row per SteamID + IP in `sa_players_ips` and overwrites its name on each
|
||||
connect, so a rename on the same IP loses the old name. `sql/players-ips-name-history.sql` adds
|
||||
`name` to that table's primary key, so every name a SteamID has joined with is kept and shows up
|
||||
on its player page and in name search. SimpleAdmin needs no changes. Run it once against the
|
||||
SimpleAdmin database; the file has the revert. Names are still only recorded at connect.
|
||||
|
||||
## Limitations and caveats
|
||||
|
||||
- **Tested against a real MySQL 8.4** with SimpleAdmin 1.8.2b's migrations applied, and a fake game
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue