From 56bc277436f530a5ae65a77b426bae36870ac99b Mon Sep 17 00:00:00 2001 From: defnotken Date: Fri, 5 Sep 2025 14:29:37 -0500 Subject: [PATCH] readding banned column --- ...gner.cs => 20250905192853_AddBannedUid.Designer.cs} | 2 +- ..._AddBannedUid.cs => 20250905192853_AddBannedUid.cs} | 10 ++++++++-- .../LightlessSyncShared/Models/Banned.cs | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) rename LightlessSyncServer/LightlessSyncShared/Migrations/{20250905190334_AddBannedUid.Designer.cs => 20250905192853_AddBannedUid.Designer.cs} (99%) rename LightlessSyncServer/LightlessSyncShared/Migrations/{20250905190334_AddBannedUid.cs => 20250905192853_AddBannedUid.cs} (59%) diff --git a/LightlessSyncServer/LightlessSyncShared/Migrations/20250905190334_AddBannedUid.Designer.cs b/LightlessSyncServer/LightlessSyncShared/Migrations/20250905192853_AddBannedUid.Designer.cs similarity index 99% rename from LightlessSyncServer/LightlessSyncShared/Migrations/20250905190334_AddBannedUid.Designer.cs rename to LightlessSyncServer/LightlessSyncShared/Migrations/20250905192853_AddBannedUid.Designer.cs index 726257a..5c56f33 100644 --- a/LightlessSyncServer/LightlessSyncShared/Migrations/20250905190334_AddBannedUid.Designer.cs +++ b/LightlessSyncServer/LightlessSyncShared/Migrations/20250905192853_AddBannedUid.Designer.cs @@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace LightlessSyncServer.Migrations { [DbContext(typeof(LightlessDbContext))] - [Migration("20250905190334_AddBannedUid")] + [Migration("20250905192853_AddBannedUid")] partial class AddBannedUid { /// diff --git a/LightlessSyncServer/LightlessSyncShared/Migrations/20250905190334_AddBannedUid.cs b/LightlessSyncServer/LightlessSyncShared/Migrations/20250905192853_AddBannedUid.cs similarity index 59% rename from LightlessSyncServer/LightlessSyncShared/Migrations/20250905190334_AddBannedUid.cs rename to LightlessSyncServer/LightlessSyncShared/Migrations/20250905192853_AddBannedUid.cs index 0286706..0467a67 100644 --- a/LightlessSyncServer/LightlessSyncShared/Migrations/20250905190334_AddBannedUid.cs +++ b/LightlessSyncServer/LightlessSyncShared/Migrations/20250905192853_AddBannedUid.cs @@ -10,13 +10,19 @@ namespace LightlessSyncServer.Migrations /// protected override void Up(MigrationBuilder migrationBuilder) { - + migrationBuilder.AddColumn( + name: "banned_uid", + table: "banned_users", + type: "text", + nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { - + migrationBuilder.DropColumn( + name: "banned_uid", + table: "banned_users"); } } } diff --git a/LightlessSyncServer/LightlessSyncShared/Models/Banned.cs b/LightlessSyncServer/LightlessSyncShared/Models/Banned.cs index bc09e55..4071f56 100644 --- a/LightlessSyncServer/LightlessSyncShared/Models/Banned.cs +++ b/LightlessSyncServer/LightlessSyncShared/Models/Banned.cs @@ -7,8 +7,8 @@ public class Banned [Key] [MaxLength(100)] public string CharacterIdentification { get; set; } - public string Reason { get; set; } public string BannedUid { get; set; } + public string Reason { get; set; } [Timestamp] public byte[] Timestamp { get; set; } }