mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Bandaid postgres time mapping behavior.
Handling of date time in npgsql was changed in 6.0 (breaking) with an opt-out for now.
This commit is contained in:
parent
4ca6f6ff69
commit
1f07ee1109
1 changed files with 5 additions and 0 deletions
|
|
@ -15,6 +15,11 @@ namespace Content.Server.Database
|
|||
{
|
||||
}
|
||||
|
||||
static PostgresServerDbContext()
|
||||
{
|
||||
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
|
||||
}
|
||||
|
||||
public DbSet<PostgresServerBan> Ban { get; set; } = default!;
|
||||
public DbSet<PostgresServerUnban> Unban { get; set; } = default!;
|
||||
public DbSet<PostgresPlayer> Player { get; set; } = default!;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue