From b9abdcfff718fd14b6df8efb34f5105bee9be38f Mon Sep 17 00:00:00 2001 From: azyges <229218900+azyges@users.noreply.github.com> Date: Fri, 26 Sep 2025 22:36:51 +0900 Subject: [PATCH] update migrations --- ...igner.cs => 20250926133055_AddUserVanity.Designer.cs} | 9 +++------ ...erVanityFields.cs => 20250926133055_AddUserVanity.cs} | 8 +++----- .../Migrations/LightlessDbContextModelSnapshot.cs | 5 +---- 3 files changed, 7 insertions(+), 15 deletions(-) rename LightlessSyncServer/LightlessSyncShared/Migrations/{20250925225205_AddUserVanityFields.Designer.cs => 20250926133055_AddUserVanity.Designer.cs} (99%) rename LightlessSyncServer/LightlessSyncShared/Migrations/{20250925225205_AddUserVanityFields.cs => 20250926133055_AddUserVanity.cs} (87%) diff --git a/LightlessSyncServer/LightlessSyncShared/Migrations/20250925225205_AddUserVanityFields.Designer.cs b/LightlessSyncServer/LightlessSyncShared/Migrations/20250926133055_AddUserVanity.Designer.cs similarity index 99% rename from LightlessSyncServer/LightlessSyncShared/Migrations/20250925225205_AddUserVanityFields.Designer.cs rename to LightlessSyncServer/LightlessSyncShared/Migrations/20250926133055_AddUserVanity.Designer.cs index c667a50..c2956de 100644 --- a/LightlessSyncServer/LightlessSyncShared/Migrations/20250925225205_AddUserVanityFields.Designer.cs +++ b/LightlessSyncServer/LightlessSyncShared/Migrations/20250926133055_AddUserVanity.Designer.cs @@ -1,4 +1,4 @@ -// +// using System; using LightlessSyncShared.Data; using Microsoft.EntityFrameworkCore; @@ -12,8 +12,8 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace LightlessSyncServer.Migrations { [DbContext(typeof(LightlessDbContext))] - [Migration("20250925225205_AddUserVanityFields")] - partial class AddUserVanityFields + [Migration("20250926133055_AddUserVanity")] + partial class AddUserVanity { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -688,7 +688,6 @@ namespace LightlessSyncServer.Migrations b.Property("HasVanity") .HasColumnType("boolean") - .HasDefaultValue(false) .HasColumnName("has_vanity"); b.Property("IsAdmin") @@ -706,13 +705,11 @@ namespace LightlessSyncServer.Migrations b.Property("TextColorHex") .HasMaxLength(9) .HasColumnType("character varying(9)") - .HasDefaultValue(string.Empty) .HasColumnName("text_color_hex"); b.Property("TextGlowColorHex") .HasMaxLength(9) .HasColumnType("character varying(9)") - .HasDefaultValue(string.Empty) .HasColumnName("text_glow_color_hex"); b.Property("Timestamp") diff --git a/LightlessSyncServer/LightlessSyncShared/Migrations/20250925225205_AddUserVanityFields.cs b/LightlessSyncServer/LightlessSyncShared/Migrations/20250926133055_AddUserVanity.cs similarity index 87% rename from LightlessSyncServer/LightlessSyncShared/Migrations/20250925225205_AddUserVanityFields.cs rename to LightlessSyncServer/LightlessSyncShared/Migrations/20250926133055_AddUserVanity.cs index fbc7b07..714c6e1 100644 --- a/LightlessSyncServer/LightlessSyncShared/Migrations/20250925225205_AddUserVanityFields.cs +++ b/LightlessSyncServer/LightlessSyncShared/Migrations/20250926133055_AddUserVanity.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Migrations; namespace LightlessSyncServer.Migrations { /// - public partial class AddUserVanityFields : Migration + public partial class AddUserVanity : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) @@ -22,16 +22,14 @@ namespace LightlessSyncServer.Migrations table: "users", type: "character varying(9)", maxLength: 9, - nullable: true, - defaultValue: ""); + nullable: true); migrationBuilder.AddColumn( name: "text_glow_color_hex", table: "users", type: "character varying(9)", maxLength: 9, - nullable: true, - defaultValue: ""); + nullable: true); } /// diff --git a/LightlessSyncServer/LightlessSyncShared/Migrations/LightlessDbContextModelSnapshot.cs b/LightlessSyncServer/LightlessSyncShared/Migrations/LightlessDbContextModelSnapshot.cs index 751cfd6..578c910 100644 --- a/LightlessSyncServer/LightlessSyncShared/Migrations/LightlessDbContextModelSnapshot.cs +++ b/LightlessSyncServer/LightlessSyncShared/Migrations/LightlessDbContextModelSnapshot.cs @@ -1,4 +1,4 @@ -// +// using System; using LightlessSyncShared.Data; using Microsoft.EntityFrameworkCore; @@ -685,7 +685,6 @@ namespace LightlessSyncServer.Migrations b.Property("HasVanity") .HasColumnType("boolean") - .HasDefaultValue(false) .HasColumnName("has_vanity"); b.Property("IsAdmin") @@ -703,13 +702,11 @@ namespace LightlessSyncServer.Migrations b.Property("TextColorHex") .HasMaxLength(9) .HasColumnType("character varying(9)") - .HasDefaultValue(string.Empty) .HasColumnName("text_color_hex"); b.Property("TextGlowColorHex") .HasMaxLength(9) .HasColumnType("character varying(9)") - .HasDefaultValue(string.Empty) .HasColumnName("text_glow_color_hex"); b.Property("Timestamp")