Added migration for issues

pull/3895/head
Jamie Rees 6 years ago
parent 1ec5c1859c
commit 8de5057fd3

@ -13,6 +13,8 @@ namespace Ombi.Store.Entities.Requests
public int? RequestId { get; set; }
public string Subject { get; set; }
public string Description { get; set; }
public int SeasonNumber { get; set; }
public int EpisodeNumber { get; set; }
public int IssueCategoryId { get; set; }
[ForeignKey(nameof(IssueCategoryId))]
public IssueCategory IssueCategory { get; set; }

File diff suppressed because it is too large Load Diff

@ -0,0 +1,33 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Ombi.Store.Migrations
{
public partial class IssueSeasonAndEpisode : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "EpisodeNumber",
table: "Issues",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "SeasonNumber",
table: "Issues",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EpisodeNumber",
table: "Issues");
migrationBuilder.DropColumn(
name: "SeasonNumber",
table: "Issues");
}
}
}

@ -14,7 +14,7 @@ namespace Ombi.Store.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.1-servicing-10028");
.HasAnnotation("ProductVersion", "2.2.4-servicing-10062");
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
{
@ -683,6 +683,8 @@ namespace Ombi.Store.Migrations
b.Property<string>("Description");
b.Property<int>("EpisodeNumber");
b.Property<int>("IssueCategoryId");
b.Property<int?>("IssueId");
@ -695,6 +697,8 @@ namespace Ombi.Store.Migrations
b.Property<DateTime?>("ResovledDate");
b.Property<int>("SeasonNumber");
b.Property<int>("Status");
b.Property<string>("Subject");

Loading…
Cancel
Save