mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-25 01:57:02 +01:00
Definitively fixed migration
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user