mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Merge branch 'develop' of https://github.com/tidusjar/ombi into develop
This commit is contained in:
commit
0a63dd0ef5
63 changed files with 1986 additions and 398 deletions
|
@ -56,6 +56,7 @@ namespace Ombi.Store.Context
|
|||
public DbSet<RequestSubscription> RequestSubscription { get; set; }
|
||||
public DbSet<UserNotificationPreferences> UserNotificationPreferences { get; set; }
|
||||
public DbSet<UserQualityProfiles> UserQualityProfileses { get; set; }
|
||||
public DbSet<RequestQueue> RequestQueue { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
|
|
16
src/Ombi.Store/Entities/RequestQueue.cs
Normal file
16
src/Ombi.Store/Entities/RequestQueue.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Ombi.Store.Entities
|
||||
{
|
||||
[Table("RequestQueue")]
|
||||
public class RequestQueue : Entity
|
||||
{
|
||||
public int RequestId { get; set; }
|
||||
public RequestType Type { get; set; }
|
||||
public DateTime Dts { get; set; }
|
||||
public string Error { get; set; }
|
||||
public DateTime? Completed { get; set; }
|
||||
public int RetryCount { get; set; }
|
||||
}
|
||||
}
|
|
@ -1,8 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Ombi.Store.Entities
|
||||
namespace Ombi.Store.Entities
|
||||
{
|
||||
public enum RequestType
|
||||
{
|
||||
|
|
1204
src/Ombi.Store/Migrations/20181204084915_RequestQueue.Designer.cs
generated
Normal file
1204
src/Ombi.Store/Migrations/20181204084915_RequestQueue.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
35
src/Ombi.Store/Migrations/20181204084915_RequestQueue.cs
Normal file
35
src/Ombi.Store/Migrations/20181204084915_RequestQueue.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace Ombi.Store.Migrations
|
||||
{
|
||||
public partial class RequestQueue : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "RequestQueue",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("Sqlite:Autoincrement", true),
|
||||
RequestId = table.Column<int>(nullable: false),
|
||||
Type = table.Column<int>(nullable: false),
|
||||
Dts = table.Column<DateTime>(nullable: false),
|
||||
Error = table.Column<string>(nullable: true),
|
||||
Completed = table.Column<DateTime>(nullable: true),
|
||||
RetryCount = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_RequestQueue", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "RequestQueue");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -14,7 +14,7 @@ namespace Ombi.Store.Migrations
|
|||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "2.1.3-rtm-32065");
|
||||
.HasAnnotation("ProductVersion", "2.1.4-rtm-31024");
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
||||
{
|
||||
|
@ -508,6 +508,28 @@ namespace Ombi.Store.Migrations
|
|||
b.ToTable("RecentlyAddedLog");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Ombi.Store.Entities.RequestQueue", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime?>("Completed");
|
||||
|
||||
b.Property<DateTime>("Dts");
|
||||
|
||||
b.Property<string>("Error");
|
||||
|
||||
b.Property<int>("RequestId");
|
||||
|
||||
b.Property<int>("RetryCount");
|
||||
|
||||
b.Property<int>("Type");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("RequestQueue");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Ombi.Store.Entities.Requests.AlbumRequest", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue