20230626233818_AddTrickplayInfos.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace Jellyfin.Server.Implementations.Migrations
  5. {
  6. /// <inheritdoc />
  7. public partial class AddTrickplayInfos : Migration
  8. {
  9. /// <inheritdoc />
  10. protected override void Up(MigrationBuilder migrationBuilder)
  11. {
  12. migrationBuilder.CreateTable(
  13. name: "TrickplayInfos",
  14. columns: table => new
  15. {
  16. ItemId = table.Column<Guid>(type: "TEXT", nullable: false),
  17. Width = table.Column<int>(type: "INTEGER", nullable: false),
  18. Height = table.Column<int>(type: "INTEGER", nullable: false),
  19. TileWidth = table.Column<int>(type: "INTEGER", nullable: false),
  20. TileHeight = table.Column<int>(type: "INTEGER", nullable: false),
  21. ThumbnailCount = table.Column<int>(type: "INTEGER", nullable: false),
  22. Interval = table.Column<int>(type: "INTEGER", nullable: false),
  23. Bandwidth = table.Column<int>(type: "INTEGER", nullable: false)
  24. },
  25. constraints: table =>
  26. {
  27. table.PrimaryKey("PK_TrickplayInfos", x => new { x.ItemId, x.Width });
  28. });
  29. }
  30. /// <inheritdoc />
  31. protected override void Down(MigrationBuilder migrationBuilder)
  32. {
  33. migrationBuilder.DropTable(
  34. name: "TrickplayInfos");
  35. }
  36. }
  37. }