using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Ombi.Store.Migrations { public partial class LidarrSyncJobs : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "LidarrAlbumCache", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), ArtistId = table.Column(nullable: false), ForeignAlbumId = table.Column(nullable: true), TrackCount = table.Column(nullable: false), ReleaseDate = table.Column(nullable: false), Monitored = table.Column(nullable: false), Title = table.Column(nullable: true), PercentOfTracks = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_LidarrAlbumCache", x => x.Id); }); migrationBuilder.CreateTable( name: "LidarrArtistCache", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), ArtistId = table.Column(nullable: false), ArtistName = table.Column(nullable: true), ForeignArtistId = table.Column(nullable: true), Monitored = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_LidarrArtistCache", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "LidarrAlbumCache"); migrationBuilder.DropTable( name: "LidarrArtistCache"); } } }