From d1ba366f9772f782ec7baa8246a4910f6cdaec20 Mon Sep 17 00:00:00 2001 From: JPVenson Date: Fri, 22 May 2026 17:56:11 +0000 Subject: [PATCH] Remove 3rd stage of migration --- .../20260522092303_AddNormalizedUsername.cs | 3 +- ...20260522092305_UpdateNormalizedUsername.cs | 31 ------------------- 2 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20260522092305_UpdateNormalizedUsername.cs diff --git a/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20260522092303_AddNormalizedUsername.cs b/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20260522092303_AddNormalizedUsername.cs index 4bee8c15b9..21877d1bc2 100644 --- a/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20260522092303_AddNormalizedUsername.cs +++ b/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20260522092303_AddNormalizedUsername.cs @@ -16,7 +16,8 @@ namespace Jellyfin.Server.Implementations.Migrations table: "Users", type: "TEXT", maxLength: 255, - nullable: true); + nullable: false, + defaultValue: string.Empty); } /// diff --git a/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20260522092305_UpdateNormalizedUsername.cs b/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20260522092305_UpdateNormalizedUsername.cs deleted file mode 100644 index 4747ea4b38..0000000000 --- a/src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20260522092305_UpdateNormalizedUsername.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Jellyfin.Database.Implementations; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Jellyfin.Server.Implementations.Migrations -{ - /// - [DbContext(typeof(JellyfinDbContext))] - [Migration("20260522092305_UpdateNormalizedUsername")] - public partial class UpdateNormalizedUsername : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - // this is the 3rd part of the NormalizedUsername migration. - migrationBuilder.AlterColumn( - name: "NormalizedUsername", - table: "Users", - type: "TEXT", - maxLength: 255, - nullable: false); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - } - } -}