mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
feat(request-limits): 🗃️ Added new user field migrations to mysql and sqlite
This commit is contained in:
parent
f5310b786b
commit
f73bccbea7
6 changed files with 2687 additions and 0 deletions
1253
src/Ombi.Store/Migrations/OmbiMySql/20210921200723_UserRequestLimits.Designer.cs
generated
Normal file
1253
src/Ombi.Store/Migrations/OmbiMySql/20210921200723_UserRequestLimits.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,73 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace Ombi.Store.Migrations.OmbiMySql
|
||||
{
|
||||
public partial class UserRequestLimits : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "EpisodeRequestLimitAmount",
|
||||
table: "AspNetUsers",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "EpisodeRequestLimitType",
|
||||
table: "AspNetUsers",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MovieRequestLimitAmount",
|
||||
table: "AspNetUsers",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MovieRequestLimitType",
|
||||
table: "AspNetUsers",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MusicRequestLimitAmount",
|
||||
table: "AspNetUsers",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MusicRequestLimitType",
|
||||
table: "AspNetUsers",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EpisodeRequestLimitAmount",
|
||||
table: "AspNetUsers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EpisodeRequestLimitType",
|
||||
table: "AspNetUsers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MovieRequestLimitAmount",
|
||||
table: "AspNetUsers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MovieRequestLimitType",
|
||||
table: "AspNetUsers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MusicRequestLimitAmount",
|
||||
table: "AspNetUsers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MusicRequestLimitType",
|
||||
table: "AspNetUsers");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -266,6 +266,12 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
|||
b.Property<int?>("EpisodeRequestLimit")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("EpisodeRequestLimitAmount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("EpisodeRequestLimitType")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Language")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
|
@ -281,9 +287,21 @@ namespace Ombi.Store.Migrations.OmbiMySql
|
|||
b.Property<int?>("MovieRequestLimit")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("MovieRequestLimitAmount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("MovieRequestLimitType")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("MusicRequestLimit")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("MusicRequestLimitAmount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("MusicRequestLimitType")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("NormalizedEmail")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("varchar(256)");
|
||||
|
|
1252
src/Ombi.Store/Migrations/OmbiSqlite/20210921195729_UserRequestLimits.Designer.cs
generated
Normal file
1252
src/Ombi.Store/Migrations/OmbiSqlite/20210921195729_UserRequestLimits.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,73 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace Ombi.Store.Migrations.OmbiSqlite
|
||||
{
|
||||
public partial class UserRequestLimits : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "EpisodeRequestLimitAmount",
|
||||
table: "AspNetUsers",
|
||||
type: "INTEGER",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "EpisodeRequestLimitType",
|
||||
table: "AspNetUsers",
|
||||
type: "INTEGER",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MovieRequestLimitAmount",
|
||||
table: "AspNetUsers",
|
||||
type: "INTEGER",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MovieRequestLimitType",
|
||||
table: "AspNetUsers",
|
||||
type: "INTEGER",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MusicRequestLimitAmount",
|
||||
table: "AspNetUsers",
|
||||
type: "INTEGER",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "MusicRequestLimitType",
|
||||
table: "AspNetUsers",
|
||||
type: "INTEGER",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EpisodeRequestLimitAmount",
|
||||
table: "AspNetUsers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EpisodeRequestLimitType",
|
||||
table: "AspNetUsers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MovieRequestLimitAmount",
|
||||
table: "AspNetUsers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MovieRequestLimitType",
|
||||
table: "AspNetUsers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MusicRequestLimitAmount",
|
||||
table: "AspNetUsers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MusicRequestLimitType",
|
||||
table: "AspNetUsers");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -265,6 +265,12 @@ namespace Ombi.Store.Migrations.OmbiSqlite
|
|||
b.Property<int?>("EpisodeRequestLimit")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("EpisodeRequestLimitAmount")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("EpisodeRequestLimitType")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Language")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
|
@ -280,9 +286,21 @@ namespace Ombi.Store.Migrations.OmbiSqlite
|
|||
b.Property<int?>("MovieRequestLimit")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("MovieRequestLimitAmount")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("MovieRequestLimitType")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("MusicRequestLimit")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("MusicRequestLimitAmount")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("MusicRequestLimitType")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("NormalizedEmail")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue