readding banned column
This commit is contained in:
@@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
namespace LightlessSyncServer.Migrations
|
||||
{
|
||||
[DbContext(typeof(LightlessDbContext))]
|
||||
[Migration("20250905190334_AddBannedUid")]
|
||||
[Migration("20250905192853_AddBannedUid")]
|
||||
partial class AddBannedUid
|
||||
{
|
||||
/// <inheritdoc />
|
||||
@@ -10,13 +10,19 @@ namespace LightlessSyncServer.Migrations
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "banned_uid",
|
||||
table: "banned_users",
|
||||
type: "text",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "banned_uid",
|
||||
table: "banned_users");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user