Definitively fixed migration

This commit is contained in:
JPVenson
2026-05-22 16:36:19 +00:00
parent f1137a9587
commit e52e448c30

View File

@@ -15,8 +15,16 @@ namespace Jellyfin.Server.Implementations.Migrations
table: "Users",
type: "TEXT",
maxLength: 255,
nullable: false,
defaultValueSql: "(UPPER([Username]))");
nullable: true);
migrationBuilder.Sql("""
UPDATE "Users" SET "NormalizedUsername" = UPPER("Username")
""");
migrationBuilder.AlterColumn<string>(
name: "NormalizedUsername",
table: "Users",
type: "TEXT",
maxLength: 255,
nullable: false);
}
/// <inheritdoc />