using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Jellyfin.Server.Implementations.Migrations { /// public partial class AddMediaSegments : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "MediaSegments", columns: table => new { Id = table.Column(type: "TEXT", nullable: false), ItemId = table.Column(type: "TEXT", nullable: false), Type = table.Column(type: "INTEGER", nullable: false), EndTicks = table.Column(type: "INTEGER", nullable: false), StartTicks = table.Column(type: "INTEGER", nullable: false), SegmentProviderId = table.Column(type: "TEXT", nullable: false), }, constraints: table => { table.PrimaryKey("PK_MediaSegments", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "MediaSegments"); } } }