Update schema and migration to allow LastLoginDate and LastActivityDate to be null
This commit is contained in:
parent
8ca78f33e9
commit
12a900b8f6
|
@ -1,6 +1,4 @@
|
||||||
#pragma warning disable CS1591
|
// <auto-generated />
|
||||||
|
|
||||||
// <auto-generated />
|
|
||||||
using System;
|
using System;
|
||||||
using Jellyfin.Server.Implementations;
|
using Jellyfin.Server.Implementations;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
@ -11,7 +9,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
namespace Jellyfin.Server.Implementations.Migrations
|
namespace Jellyfin.Server.Implementations.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(JellyfinDb))]
|
[DbContext(typeof(JellyfinDb))]
|
||||||
[Migration("20200527010628_AddUsers")]
|
[Migration("20200529171409_AddUsers")]
|
||||||
partial class AddUsers
|
partial class AddUsers
|
||||||
{
|
{
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
|
@ -281,10 +279,10 @@ namespace Jellyfin.Server.Implementations.Migrations
|
||||||
b.Property<int>("InvalidLoginAttemptCount")
|
b.Property<int>("InvalidLoginAttemptCount")
|
||||||
.HasColumnType("INTEGER");
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
b.Property<DateTime>("LastActivityDate")
|
b.Property<DateTime?>("LastActivityDate")
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<DateTime>("LastLoginDate")
|
b.Property<DateTime?>("LastLoginDate")
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<int?>("LoginAttemptsBeforeLockout")
|
b.Property<int?>("LoginAttemptsBeforeLockout")
|
|
@ -1,7 +1,4 @@
|
||||||
#pragma warning disable CS1591
|
using System;
|
||||||
#pragma warning disable SA1601
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
namespace Jellyfin.Server.Implementations.Migrations
|
namespace Jellyfin.Server.Implementations.Migrations
|
||||||
|
@ -39,8 +36,8 @@ namespace Jellyfin.Server.Implementations.Migrations
|
||||||
AuthenticationProviderId = table.Column<string>(maxLength: 255, nullable: false),
|
AuthenticationProviderId = table.Column<string>(maxLength: 255, nullable: false),
|
||||||
PasswordResetProviderId = table.Column<string>(maxLength: 255, nullable: false),
|
PasswordResetProviderId = table.Column<string>(maxLength: 255, nullable: false),
|
||||||
InvalidLoginAttemptCount = table.Column<int>(nullable: false),
|
InvalidLoginAttemptCount = table.Column<int>(nullable: false),
|
||||||
LastActivityDate = table.Column<DateTime>(nullable: false),
|
LastActivityDate = table.Column<DateTime>(nullable: true),
|
||||||
LastLoginDate = table.Column<DateTime>(nullable: false),
|
LastLoginDate = table.Column<DateTime>(nullable: true),
|
||||||
LoginAttemptsBeforeLockout = table.Column<int>(nullable: true),
|
LoginAttemptsBeforeLockout = table.Column<int>(nullable: true),
|
||||||
SubtitleMode = table.Column<int>(nullable: false),
|
SubtitleMode = table.Column<int>(nullable: false),
|
||||||
PlayDefaultAudioTrack = table.Column<bool>(nullable: false),
|
PlayDefaultAudioTrack = table.Column<bool>(nullable: false),
|
|
@ -277,10 +277,10 @@ namespace Jellyfin.Server.Implementations.Migrations
|
||||||
b.Property<int>("InvalidLoginAttemptCount")
|
b.Property<int>("InvalidLoginAttemptCount")
|
||||||
.HasColumnType("INTEGER");
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
b.Property<DateTime>("LastActivityDate")
|
b.Property<DateTime?>("LastActivityDate")
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<DateTime>("LastLoginDate")
|
b.Property<DateTime?>("LastLoginDate")
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<int?>("LoginAttemptsBeforeLockout")
|
b.Property<int?>("LoginAttemptsBeforeLockout")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user