20250202021306_FixedCollation.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Jellyfin.Server.Implementations.Migrations
  4. {
  5. /// <inheritdoc />
  6. public partial class FixedCollation : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AlterColumn<string>(
  12. name: "Username",
  13. table: "Users",
  14. type: "TEXT",
  15. maxLength: 255,
  16. nullable: false,
  17. oldClrType: typeof(string),
  18. oldType: "TEXT",
  19. oldMaxLength: 255,
  20. oldCollation: "NOCASE");
  21. }
  22. /// <inheritdoc />
  23. protected override void Down(MigrationBuilder migrationBuilder)
  24. {
  25. migrationBuilder.AlterColumn<string>(
  26. name: "Username",
  27. table: "Users",
  28. type: "TEXT",
  29. maxLength: 255,
  30. nullable: false,
  31. collation: "NOCASE",
  32. oldClrType: typeof(string),
  33. oldType: "TEXT",
  34. oldMaxLength: 255);
  35. }
  36. }
  37. }