using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Jellyfin.Server.Implementations.Migrations { /// public partial class AddKeyframeData : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "KeyframeData", columns: table => new { ItemId = table.Column(type: "TEXT", nullable: false), TotalDuration = table.Column(type: "INTEGER", nullable: false), KeyframeTicks = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_KeyframeData", x => x.ItemId); table.ForeignKey( name: "FK_KeyframeData_BaseItems_ItemId", column: x => x.ItemId, principalTable: "BaseItems", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "KeyframeData"); } } }