From 0048dc4b73ff2003f582e775a286db4c78985fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Fri, 16 May 2025 17:26:06 +0200 Subject: [PATCH] Change the maximum length of the OpenIddictEntityFrameworkToken/OpenIddictEntityFrameworkCoreToken.Type column from 50 to 150 --- .../OpenIddictEntityFrameworkTokenConfiguration.cs | 4 ++-- .../OpenIddictEntityFrameworkCoreTokenConfiguration.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkTokenConfiguration.cs b/src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkTokenConfiguration.cs index 59ec98cd..8f27438c 100644 --- a/src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkTokenConfiguration.cs +++ b/src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkTokenConfiguration.cs @@ -45,7 +45,7 @@ public sealed class OpenIddictEntityFrameworkTokenConfiguration< // Warning: the index on the ReferenceId property MUST NOT be declared as // a unique index, as Entity Framework 6.x doesn't support creating indexes - // with null-friendly WHERE conditions, unlike Entity Framework Core 1.x/2.x. + // with null-friendly WHERE conditions, unlike Entity Framework Core. Property(token => token.ReferenceId) .HasMaxLength(100) .HasColumnAnnotation(IndexAnnotation.AnnotationName, new IndexAnnotation(new IndexAttribute())); @@ -57,7 +57,7 @@ public sealed class OpenIddictEntityFrameworkTokenConfiguration< .HasMaxLength(400); Property(token => token.Type) - .HasMaxLength(50); + .HasMaxLength(150); ToTable("OpenIddictTokens"); } diff --git a/src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreTokenConfiguration.cs b/src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreTokenConfiguration.cs index f249bf15..c9483b35 100644 --- a/src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreTokenConfiguration.cs +++ b/src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreTokenConfiguration.cs @@ -71,7 +71,7 @@ public sealed class OpenIddictEntityFrameworkCoreTokenConfiguration< .HasMaxLength(400); builder.Property(token => token.Type) - .HasMaxLength(50); + .HasMaxLength(150); builder.ToTable("OpenIddictTokens"); }