Fixed issues not loading

This commit is contained in:
Jamie Rees 2020-05-16 21:08:37 +01:00
commit 7ca57f3666
9 changed files with 2360 additions and 16 deletions

View file

@ -13,13 +13,14 @@ 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 SeasonNumber { get; set; }
//public int EpisodeNumber { get; set; }
public int IssueCategoryId { get; set; }
[ForeignKey(nameof(IssueCategoryId))]
public IssueCategory IssueCategory { get; set; }
public IssueStatus Status { get; set; }
public DateTime? ResovledDate { get; set; }
public DateTime CreatedDate { get; set; }
[ForeignKey(nameof(UserReported))]
public string UserReportedId { get; set; }
public OmbiUser UserReported { get; set; }

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,24 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Ombi.Store.Migrations.OmbiMySql
{
public partial class IssueCreatedDate : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "CreatedDate",
table: "Issues",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CreatedDate",
table: "Issues");
}
}
}

View file

@ -595,9 +595,6 @@ namespace Ombi.Store.Migrations.OmbiMySql
b.Property<string>("Description")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property<int>("EpisodeNumber")
.HasColumnType("int");
b.Property<int>("IssueCategoryId")
.HasColumnType("int");
@ -616,9 +613,6 @@ namespace Ombi.Store.Migrations.OmbiMySql
b.Property<DateTime?>("ResovledDate")
.HasColumnType("datetime(6)");
b.Property<int>("SeasonNumber")
.HasColumnType("int");
b.Property<int>("Status")
.HasColumnType("int");

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,24 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Ombi.Store.Migrations.OmbiSqlite
{
public partial class IssueCreatedDate : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "CreatedDate",
table: "Issues",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CreatedDate",
table: "Issues");
}
}
}

View file

@ -591,11 +591,11 @@ namespace Ombi.Store.Migrations.OmbiSqlite
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Description")
b.Property<DateTime>("CreatedDate")
.HasColumnType("TEXT");
b.Property<int>("EpisodeNumber")
.HasColumnType("INTEGER");
b.Property<string>("Description")
.HasColumnType("TEXT");
b.Property<int>("IssueCategoryId")
.HasColumnType("INTEGER");
@ -615,9 +615,6 @@ namespace Ombi.Store.Migrations.OmbiSqlite
b.Property<DateTime?>("ResovledDate")
.HasColumnType("TEXT");
b.Property<int>("SeasonNumber")
.HasColumnType("INTEGER");
b.Property<int>("Status")
.HasColumnType("INTEGER");