mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Added migration for issues
This commit is contained in:
parent
1ec5c1859c
commit
8de5057fd3
4 changed files with 1258 additions and 1 deletions
|
@ -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; }
|
||||
|
|
1218
src/Ombi.Store/Migrations/20190520121742_IssueSeasonAndEpisode.Designer.cs
generated
Normal file
1218
src/Ombi.Store/Migrations/20190520121742_IssueSeasonAndEpisode.Designer.cs
generated
Normal file
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…
Add table
Add a link
Reference in a new issue