using Microsoft.EntityFrameworkCore.Migrations; using System; using System.Collections.Generic; namespace Ombi.Store.Migrations { public partial class SickRage : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "SickRageCache", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), TvDbId = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { table.PrimaryKey("PK_SickRageCache", x => x.Id); }); migrationBuilder.CreateTable( name: "SickRageEpisodeCache", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), EpisodeNumber = table.Column(type: "INTEGER", nullable: false), SeasonNumber = table.Column(type: "INTEGER", nullable: false), TvDbId = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { table.PrimaryKey("PK_SickRageEpisodeCache", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "SickRageCache"); migrationBuilder.DropTable( name: "SickRageEpisodeCache"); } } }