Browse Source

Change the maximum length of the OpenIddictEntityFrameworkToken/OpenIddictEntityFrameworkCoreToken.Type column from 50 to 150

pull/2323/head
Kévin Chalet 9 months ago
parent
commit
0048dc4b73
  1. 4
      src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkTokenConfiguration.cs
  2. 2
      src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreTokenConfiguration.cs

4
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");
}

2
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");
}

Loading…
Cancel
Save