Last active
August 29, 2015 14:07
-
-
Save pysco68/ad8732fd79f0b2bb874f to your computer and use it in GitHub Desktop.
Fixing MySQL error 1071 "Specified key was too long; max key length is 767 bytes"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modelBuilder.Entity<IdentityRole>() | |
.Property(c => c.Name) | |
.HasMaxLength(128) | |
.IsRequired(); | |
modelBuilder.Entity<ApplicationUser>() | |
.ToTable("AspNetUsers") | |
.Property(c => c.UserName) | |
.HasMaxLength(128) | |
.IsRequired(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment