20210407110544_NullableCustomPrefValue.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma warning disable CS1591
  2. // <auto-generated />
  3. using Microsoft.EntityFrameworkCore.Migrations;
  4. namespace Jellyfin.Server.Implementations.Migrations
  5. {
  6. public partial class NullableCustomPrefValue : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.AlterColumn<string>(
  11. name: "Value",
  12. schema: "jellyfin",
  13. table: "CustomItemDisplayPreferences",
  14. type: "TEXT",
  15. nullable: true,
  16. oldClrType: typeof(string),
  17. oldType: "TEXT");
  18. }
  19. protected override void Down(MigrationBuilder migrationBuilder)
  20. {
  21. migrationBuilder.AlterColumn<string>(
  22. name: "Value",
  23. schema: "jellyfin",
  24. table: "CustomItemDisplayPreferences",
  25. type: "TEXT",
  26. nullable: false,
  27. defaultValue: "",
  28. oldClrType: typeof(string),
  29. oldType: "TEXT",
  30. oldNullable: true);
  31. }
  32. }
  33. }