mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
commit
b012736e27
7 changed files with 2736 additions and 121 deletions
|
@ -48,6 +48,7 @@ stages:
|
||||||
- stage: deploy
|
- stage: deploy
|
||||||
jobs:
|
jobs:
|
||||||
- job:
|
- job:
|
||||||
|
condition: and(succeeded(), eq(variables.isMain, true))
|
||||||
steps:
|
steps:
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -90,4 +91,3 @@ stages:
|
||||||
isPreRelease: true
|
isPreRelease: true
|
||||||
changeLogCompareToRelease: 'lastNonDraftRelease'
|
changeLogCompareToRelease: 'lastNonDraftRelease'
|
||||||
changeLogType: 'commitBased'
|
changeLogType: 'commitBased'
|
||||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/feature/v4'))
|
|
||||||
|
|
|
@ -25,3 +25,6 @@ variables:
|
||||||
|
|
||||||
- name: "BuildVersion"
|
- name: "BuildVersion"
|
||||||
value: "4.0.$(Build.BuildId)"
|
value: "4.0.$(Build.BuildId)"
|
||||||
|
|
||||||
|
- name: isMain
|
||||||
|
value: $[eq(variables['Build.SourceBranch'], 'refs/heads/feature/v4')]
|
|
@ -8,34 +8,34 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
{
|
{
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
migrationBuilder.Sql(@"CREATE TABLE `MobileDevices` (
|
// migrationBuilder.Sql(@"CREATE TABLE `MobileDevices` (
|
||||||
`Id` int NOT NULL AUTO_INCREMENT,
|
// `Id` int NOT NULL AUTO_INCREMENT,
|
||||||
`Token` longtext CHARACTER SET utf8mb4 NULL,
|
// `Token` longtext CHARACTER SET utf8mb4 NULL,
|
||||||
`UserId` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
|
// `UserId` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
|
||||||
`AddedAt` datetime(6) NOT NULL,
|
// `AddedAt` datetime(6) NOT NULL,
|
||||||
CONSTRAINT `PK_MobileDevices` PRIMARY KEY (`Id`),
|
// CONSTRAINT `PK_MobileDevices` PRIMARY KEY (`Id`),
|
||||||
CONSTRAINT `FK_MobileDevices_AspNetUsers_UserId` FOREIGN KEY (`UserId`) REFERENCES `AspNetUsers` (`Id`) ON DELETE RESTRICT
|
// CONSTRAINT `FK_MobileDevices_AspNetUsers_UserId` FOREIGN KEY (`UserId`) REFERENCES `AspNetUsers` (`Id`) ON DELETE RESTRICT
|
||||||
);");
|
//);");
|
||||||
|
|
||||||
//migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
// name: "MobileDevices",
|
name: "MobileDevices",
|
||||||
// columns: table => new
|
columns: table => new
|
||||||
// {
|
{
|
||||||
// Id = table.Column<int>(nullable: false).Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
Id = table.Column<int>(nullable: false).Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||||
// Token = table.Column<string>(maxLength: 256, nullable: true),
|
Token = table.Column<string>(maxLength: 256, nullable: true),
|
||||||
// UserId = table.Column<string>(maxLength: 255, nullable: false),
|
UserId = table.Column<string>(maxLength: 255, nullable: false),
|
||||||
// AddedAt = table.Column<DateTime>(maxLength: 256, nullable: false),
|
AddedAt = table.Column<DateTime>(maxLength: 256, nullable: false),
|
||||||
// },
|
},
|
||||||
// constraints: table =>
|
constraints: table =>
|
||||||
// {
|
{
|
||||||
// table.PrimaryKey("PK_MobileDevices", x => x.Id);
|
table.PrimaryKey("PK_MobileDevices", x => x.Id);
|
||||||
// table.ForeignKey(
|
table.ForeignKey(
|
||||||
// name: "FK_MobileDevices_AspNetUsers_UserId",
|
name: "FK_MobileDevices_AspNetUsers_UserId",
|
||||||
// column: x => x.UserId,
|
column: x => x.UserId,
|
||||||
// principalTable: "AspNetUsers",
|
principalTable: "AspNetUsers",
|
||||||
// principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
// onDelete: ReferentialAction.Restrict);
|
onDelete: ReferentialAction.Restrict);
|
||||||
// });
|
});
|
||||||
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
|
|
1152
src/Ombi.Store/Migrations/OmbiMySql/20200829205234_Charset.Designer.cs
generated
Normal file
1152
src/Ombi.Store/Migrations/OmbiMySql/20200829205234_Charset.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
1457
src/Ombi.Store/Migrations/OmbiMySql/20200829205234_Charset.cs
Normal file
1457
src/Ombi.Store/Migrations/OmbiMySql/20200829205234_Charset.cs
Normal file
File diff suppressed because it is too large
Load diff
|
@ -20,18 +20,18 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
||||||
{
|
{
|
||||||
b.Property<string>("Id")
|
b.Property<string>("Id")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<string>("ConcurrencyStamp")
|
b.Property<string>("ConcurrencyStamp")
|
||||||
.IsConcurrencyToken()
|
.IsConcurrencyToken()
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("Name")
|
b.Property<string>("Name")
|
||||||
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
|
.HasColumnType("varchar(256)")
|
||||||
.HasMaxLength(256);
|
.HasMaxLength(256);
|
||||||
|
|
||||||
b.Property<string>("NormalizedName")
|
b.Property<string>("NormalizedName")
|
||||||
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
|
.HasColumnType("varchar(256)")
|
||||||
.HasMaxLength(256);
|
.HasMaxLength(256);
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
@ -50,14 +50,14 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("ClaimType")
|
b.Property<string>("ClaimType")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("ClaimValue")
|
b.Property<string>("ClaimValue")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("RoleId")
|
b.Property<string>("RoleId")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -73,14 +73,14 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("ClaimType")
|
b.Property<string>("ClaimType")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("ClaimValue")
|
b.Property<string>("ClaimValue")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -92,17 +92,17 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
||||||
{
|
{
|
||||||
b.Property<string>("LoginProvider")
|
b.Property<string>("LoginProvider")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<string>("ProviderKey")
|
b.Property<string>("ProviderKey")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<string>("ProviderDisplayName")
|
b.Property<string>("ProviderDisplayName")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.HasKey("LoginProvider", "ProviderKey");
|
b.HasKey("LoginProvider", "ProviderKey");
|
||||||
|
|
||||||
|
@ -114,10 +114,10 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
||||||
{
|
{
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<string>("RoleId")
|
b.Property<string>("RoleId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.HasKey("UserId", "RoleId");
|
b.HasKey("UserId", "RoleId");
|
||||||
|
|
||||||
|
@ -129,16 +129,16 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
||||||
{
|
{
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<string>("LoginProvider")
|
b.Property<string>("LoginProvider")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<string>("Name")
|
b.Property<string>("Name")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<string>("Value")
|
b.Property<string>("Value")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.HasKey("UserId", "LoginProvider", "Name");
|
b.HasKey("UserId", "LoginProvider", "Name");
|
||||||
|
|
||||||
|
@ -161,10 +161,10 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("Description")
|
b.Property<string>("Description")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("User")
|
b.Property<string>("User")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -181,10 +181,10 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("Token")
|
b.Property<string>("Token")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -206,13 +206,13 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("tinyint(1)");
|
.HasColumnType("tinyint(1)");
|
||||||
|
|
||||||
b.Property<string>("Message")
|
b.Property<string>("Message")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<int>("NotificationType")
|
b.Property<int>("NotificationType")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Subject")
|
b.Property<string>("Subject")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -229,10 +229,10 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("PlayerId")
|
b.Property<string>("PlayerId")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -244,20 +244,20 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
modelBuilder.Entity("Ombi.Store.Entities.OmbiUser", b =>
|
modelBuilder.Entity("Ombi.Store.Entities.OmbiUser", b =>
|
||||||
{
|
{
|
||||||
b.Property<string>("Id")
|
b.Property<string>("Id")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<int>("AccessFailedCount")
|
b.Property<int>("AccessFailedCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Alias")
|
b.Property<string>("Alias")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("ConcurrencyStamp")
|
b.Property<string>("ConcurrencyStamp")
|
||||||
.IsConcurrencyToken()
|
.IsConcurrencyToken()
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("Email")
|
b.Property<string>("Email")
|
||||||
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
|
.HasColumnType("varchar(256)")
|
||||||
.HasMaxLength(256);
|
.HasMaxLength(256);
|
||||||
|
|
||||||
b.Property<bool>("EmailConfirmed")
|
b.Property<bool>("EmailConfirmed")
|
||||||
|
@ -267,7 +267,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Language")
|
b.Property<string>("Language")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<DateTime?>("LastLoggedIn")
|
b.Property<DateTime?>("LastLoggedIn")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
@ -285,36 +285,36 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("NormalizedEmail")
|
b.Property<string>("NormalizedEmail")
|
||||||
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
|
.HasColumnType("varchar(256)")
|
||||||
.HasMaxLength(256);
|
.HasMaxLength(256);
|
||||||
|
|
||||||
b.Property<string>("NormalizedUserName")
|
b.Property<string>("NormalizedUserName")
|
||||||
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
|
.HasColumnType("varchar(256)")
|
||||||
.HasMaxLength(256);
|
.HasMaxLength(256);
|
||||||
|
|
||||||
b.Property<string>("PasswordHash")
|
b.Property<string>("PasswordHash")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("PhoneNumber")
|
b.Property<string>("PhoneNumber")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<bool>("PhoneNumberConfirmed")
|
b.Property<bool>("PhoneNumberConfirmed")
|
||||||
.HasColumnType("tinyint(1)");
|
.HasColumnType("tinyint(1)");
|
||||||
|
|
||||||
b.Property<string>("ProviderUserId")
|
b.Property<string>("ProviderUserId")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("SecurityStamp")
|
b.Property<string>("SecurityStamp")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<bool>("TwoFactorEnabled")
|
b.Property<bool>("TwoFactorEnabled")
|
||||||
.HasColumnType("tinyint(1)");
|
.HasColumnType("tinyint(1)");
|
||||||
|
|
||||||
b.Property<string>("UserAccessToken")
|
b.Property<string>("UserAccessToken")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("UserName")
|
b.Property<string>("UserName")
|
||||||
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
|
.HasColumnType("varchar(256)")
|
||||||
.HasMaxLength(256);
|
.HasMaxLength(256);
|
||||||
|
|
||||||
b.Property<int>("UserType")
|
b.Property<int>("UserType")
|
||||||
|
@ -342,7 +342,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("AlbumId")
|
b.Property<string>("AlbumId")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<int>("ContentId")
|
b.Property<int>("ContentId")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
@ -377,7 +377,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("Error")
|
b.Property<string>("Error")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<int>("RequestId")
|
b.Property<int>("RequestId")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
@ -406,7 +406,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -425,28 +425,28 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("tinyint(1)");
|
.HasColumnType("tinyint(1)");
|
||||||
|
|
||||||
b.Property<string>("ArtistName")
|
b.Property<string>("ArtistName")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<bool>("Available")
|
b.Property<bool>("Available")
|
||||||
.HasColumnType("tinyint(1)");
|
.HasColumnType("tinyint(1)");
|
||||||
|
|
||||||
b.Property<string>("Cover")
|
b.Property<string>("Cover")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<bool?>("Denied")
|
b.Property<bool?>("Denied")
|
||||||
.HasColumnType("tinyint(1)");
|
.HasColumnType("tinyint(1)");
|
||||||
|
|
||||||
b.Property<string>("DeniedReason")
|
b.Property<string>("DeniedReason")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("Disk")
|
b.Property<string>("Disk")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("ForeignAlbumId")
|
b.Property<string>("ForeignAlbumId")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("ForeignArtistId")
|
b.Property<string>("ForeignArtistId")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<DateTime>("MarkedAsApproved")
|
b.Property<DateTime>("MarkedAsApproved")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
@ -467,16 +467,16 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("RequestedByAlias")
|
b.Property<string>("RequestedByAlias")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<DateTime>("RequestedDate")
|
b.Property<DateTime>("RequestedDate")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("RequestedUserId")
|
b.Property<string>("RequestedUserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<string>("Title")
|
b.Property<string>("Title")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -501,7 +501,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("tinyint(1)");
|
.HasColumnType("tinyint(1)");
|
||||||
|
|
||||||
b.Property<string>("DeniedReason")
|
b.Property<string>("DeniedReason")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<int?>("IssueId")
|
b.Property<int?>("IssueId")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
@ -522,19 +522,19 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("RequestedByAlias")
|
b.Property<string>("RequestedByAlias")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<DateTime>("RequestedDate")
|
b.Property<DateTime>("RequestedDate")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("RequestedUserId")
|
b.Property<string>("RequestedUserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<int>("SeriesType")
|
b.Property<int>("SeriesType")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Title")
|
b.Property<string>("Title")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -552,7 +552,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Value")
|
b.Property<string>("Value")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -566,7 +566,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Comment")
|
b.Property<string>("Comment")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<DateTime>("Date")
|
b.Property<DateTime>("Date")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
@ -575,7 +575,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -596,7 +596,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("Description")
|
b.Property<string>("Description")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<int>("IssueCategoryId")
|
b.Property<int>("IssueCategoryId")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
@ -605,7 +605,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("ProviderId")
|
b.Property<string>("ProviderId")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<int?>("RequestId")
|
b.Property<int?>("RequestId")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
@ -620,13 +620,13 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Subject")
|
b.Property<string>("Subject")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("Title")
|
b.Property<string>("Title")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("UserReportedId")
|
b.Property<string>("UserReportedId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -652,25 +652,25 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("tinyint(1)");
|
.HasColumnType("tinyint(1)");
|
||||||
|
|
||||||
b.Property<string>("Background")
|
b.Property<string>("Background")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<bool?>("Denied")
|
b.Property<bool?>("Denied")
|
||||||
.HasColumnType("tinyint(1)");
|
.HasColumnType("tinyint(1)");
|
||||||
|
|
||||||
b.Property<string>("DeniedReason")
|
b.Property<string>("DeniedReason")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<DateTime?>("DigitalReleaseDate")
|
b.Property<DateTime?>("DigitalReleaseDate")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("ImdbId")
|
b.Property<string>("ImdbId")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<int?>("IssueId")
|
b.Property<int?>("IssueId")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("LangCode")
|
b.Property<string>("LangCode")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<DateTime>("MarkedAsApproved")
|
b.Property<DateTime>("MarkedAsApproved")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
@ -682,10 +682,10 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("Overview")
|
b.Property<string>("Overview")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("PosterPath")
|
b.Property<string>("PosterPath")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<int>("QualityOverride")
|
b.Property<int>("QualityOverride")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
@ -697,25 +697,25 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("RequestedByAlias")
|
b.Property<string>("RequestedByAlias")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<DateTime>("RequestedDate")
|
b.Property<DateTime>("RequestedDate")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("RequestedUserId")
|
b.Property<string>("RequestedUserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<int>("RootPathOverride")
|
b.Property<int>("RootPathOverride")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Status")
|
b.Property<string>("Status")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<int>("TheMovieDbId")
|
b.Property<int>("TheMovieDbId")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Title")
|
b.Property<string>("Title")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -743,7 +743,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -759,16 +759,16 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Background")
|
b.Property<string>("Background")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("ImdbId")
|
b.Property<string>("ImdbId")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("Overview")
|
b.Property<string>("Overview")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("PosterPath")
|
b.Property<string>("PosterPath")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<int?>("QualityOverride")
|
b.Property<int?>("QualityOverride")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
@ -780,10 +780,10 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Status")
|
b.Property<string>("Status")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("Title")
|
b.Property<string>("Title")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<int>("TotalSeasons")
|
b.Property<int>("TotalSeasons")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
@ -803,10 +803,10 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Token")
|
b.Property<string>("Token")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -828,10 +828,10 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("tinyint(1)");
|
.HasColumnType("tinyint(1)");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<string>("Value")
|
b.Property<string>("Value")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -865,7 +865,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -893,7 +893,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("UserId")
|
b.Property<string>("UserId")
|
||||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
.HasColumnType("varchar(255)");
|
||||||
|
|
||||||
b.Property<int>("VoteType")
|
b.Property<int>("VoteType")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
@ -930,10 +930,10 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Title")
|
b.Property<string>("Title")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("Url")
|
b.Property<string>("Url")
|
||||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,10 @@ namespace Ombi.Extensions
|
||||||
|
|
||||||
public static void ConfigureMySql(DbContextOptionsBuilder options, PerDatabaseConfiguration config)
|
public static void ConfigureMySql(DbContextOptionsBuilder options, PerDatabaseConfiguration config)
|
||||||
{
|
{
|
||||||
options.UseMySql(config.ConnectionString);
|
options.UseMySql(config.ConnectionString, b =>
|
||||||
|
{
|
||||||
|
b.CharSetBehavior(Pomelo.EntityFrameworkCore.MySql.Infrastructure.CharSetBehavior.NeverAppend);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public class DatabaseConfiguration
|
public class DatabaseConfiguration
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue