Delta-v/Content.Server.Database
Pieter-Jan Briers 4f3db43696
Integrate Modern HWID into content
This should be the primary changes for the future-proof "Modern HWID" system implemented into Robust and the auth server.

HWIDs in the database have been given an additional column representing their version, legacy or modern. This is implemented via an EF Core owned entity. By manually setting the column name of the main value column, we can keep DB compatibility and the migration is just adding some type columns.

This new HWID type has to be plumbed through everywhere, resulting in some breaking changes for the DB layer and such.

New bans and player records are placed with the new modern HWID. Old bans are still checked against legacy HWIDs.

Modern HWIDs are presented with a "V2-" prefix to admins, to allow distinguishing them. This is also integrated into the parsing logic for placing new bans.

There's also some code cleanup to reduce copy pasting around the place from my changes.

Requires latest engine to support ImmutableArray<byte> in NetSerializer.
2024-11-12 01:51:54 +01:00
..
Migrations Integrate Modern HWID into content 2024-11-12 01:51:54 +01:00
Content.Server.Database.csproj Switch project files to C# 12. (#25487) 2024-02-23 15:02:59 +11:00
DesignTimeContextFactories.cs Server ban exemption system (#15076) 2023-04-03 10:24:55 +10:00
Model.cs Integrate Modern HWID into content 2024-11-12 01:51:54 +01:00
ModelPostgres.cs Fix admin notes and database time nonsense. (#25280) 2024-02-20 10:13:31 +01:00
ModelSqlite.cs Dependency update / fixes / skrungle bungle (#23745) 2024-01-12 23:22:01 +01:00
SnakeCaseNaming.cs Database SnakeCaseNaming fixes 2024-11-12 01:51:54 +01:00
add-migration.ps1 Holy crap auth works (#2099) 2020-09-29 14:26:00 +02:00
add-migration.sh DB QOL stuff, but not breaking the migrations now (#5086) 2021-10-31 15:18:01 +01:00