20240928082930_MarkSegmentProviderIdNonNullable.cs 1.1 KB

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