using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Jellyfin.Server.Implementations.Migrations
{
///
public partial class AddTrickplayInfos : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "TrickplayInfos",
columns: table => new
{
ItemId = table.Column(type: "TEXT", nullable: false),
Width = table.Column(type: "INTEGER", nullable: false),
Height = table.Column(type: "INTEGER", nullable: false),
TileWidth = table.Column(type: "INTEGER", nullable: false),
TileHeight = table.Column(type: "INTEGER", nullable: false),
ThumbnailCount = table.Column(type: "INTEGER", nullable: false),
Interval = table.Column(type: "INTEGER", nullable: false),
Bandwidth = table.Column(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_TrickplayInfos", x => new { x.ItemId, x.Width });
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "TrickplayInfos");
}
}
}