

MigrationBuilder.DropPrimaryKey("PK_dbo.AspNetRoles", TABLEĪLTER COLUMN NVARCHAR(450) NOT NULL") MigrationBuilder.DropForeignKey("FK_dbo.AspNetUserRoles_dbo.AspNetRoles_RoleId", "AspNetUserRoles") The following is the Up and Down commands I used to be able to log in to my MVC6 application: protected override void Up(MigrationBuilder migrationBuilder) AspNetUsers 4 new columns (ConcurrencyStamp,LockoutEnd,NormalizedEmail,NormalizedUserName)Īnd in general the primary key on AspNetUsers and AspNetRole and Foreign Keys to theese tables had changed in length, from 128 to 450.AspNetRoles Two new database columns (ConcurrencyStamp, NormalizedName).The problems with migrating to the Identity 3.0.0-rc1-final schema appeared to be the other file is the actual migration containing the Up and Down commands for migrating your database. The snapshot is the same as with ef6, a description of how your database looks. XYZ_MigrateIdentityFrameworkFrom2to3.cs.This generated two files in the folder Migrations First I generated a new migration with the following command dnx ef migration add MigrateIdentityFrameworkFrom2to3
