Update initial migration for DefaultUI sample (#1561)

This commit is contained in:
Hao Kung 2018-01-10 13:58:03 -08:00 committed by GitHub
parent b07a95dd09
commit 435ab653db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 14 deletions

View File

@ -18,7 +18,7 @@ namespace IdentitySample.DefaultUI.Data.Migrations
{ {
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "2.1.0-preview1-27871") .HasAnnotation("ProductVersion", "2.1.0-preview1-27965")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
@ -136,9 +136,11 @@ namespace IdentitySample.DefaultUI.Data.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b => modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{ {
b.Property<string>("LoginProvider"); b.Property<string>("LoginProvider")
.HasMaxLength(128);
b.Property<string>("ProviderKey"); b.Property<string>("ProviderKey")
.HasMaxLength(128);
b.Property<string>("ProviderDisplayName"); b.Property<string>("ProviderDisplayName");
@ -169,9 +171,11 @@ namespace IdentitySample.DefaultUI.Data.Migrations
{ {
b.Property<string>("UserId"); b.Property<string>("UserId");
b.Property<string>("LoginProvider"); b.Property<string>("LoginProvider")
.HasMaxLength(128);
b.Property<string>("Name"); b.Property<string>("Name")
.HasMaxLength(128);
b.Property<string>("Value"); b.Property<string>("Value");

View File

@ -94,8 +94,8 @@ namespace IdentitySample.DefaultUI.Data.Migrations
name: "AspNetUserLogins", name: "AspNetUserLogins",
columns: table => new columns: table => new
{ {
LoginProvider = table.Column<string>(nullable: false), LoginProvider = table.Column<string>(maxLength: 128, nullable: false),
ProviderKey = table.Column<string>(nullable: false), ProviderKey = table.Column<string>(maxLength: 128, nullable: false),
ProviderDisplayName = table.Column<string>(nullable: true), ProviderDisplayName = table.Column<string>(nullable: true),
UserId = table.Column<string>(nullable: false) UserId = table.Column<string>(nullable: false)
}, },
@ -139,8 +139,8 @@ namespace IdentitySample.DefaultUI.Data.Migrations
columns: table => new columns: table => new
{ {
UserId = table.Column<string>(nullable: false), UserId = table.Column<string>(nullable: false),
LoginProvider = table.Column<string>(nullable: false), LoginProvider = table.Column<string>(maxLength: 128, nullable: false),
Name = table.Column<string>(nullable: false), Name = table.Column<string>(maxLength: 128, nullable: false),
Value = table.Column<string>(nullable: true) Value = table.Column<string>(nullable: true)
}, },
constraints: table => constraints: table =>

View File

@ -17,7 +17,7 @@ namespace IdentitySample.DefaultUI.Data.Migrations
{ {
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "2.1.0-preview1-27871") .HasAnnotation("ProductVersion", "2.1.0-preview1-27965")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
@ -135,9 +135,11 @@ namespace IdentitySample.DefaultUI.Data.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b => modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{ {
b.Property<string>("LoginProvider"); b.Property<string>("LoginProvider")
.HasMaxLength(128);
b.Property<string>("ProviderKey"); b.Property<string>("ProviderKey")
.HasMaxLength(128);
b.Property<string>("ProviderDisplayName"); b.Property<string>("ProviderDisplayName");
@ -168,9 +170,11 @@ namespace IdentitySample.DefaultUI.Data.Migrations
{ {
b.Property<string>("UserId"); b.Property<string>("UserId");
b.Property<string>("LoginProvider"); b.Property<string>("LoginProvider")
.HasMaxLength(128);
b.Property<string>("Name"); b.Property<string>("Name")
.HasMaxLength(128);
b.Property<string>("Value"); b.Property<string>("Value");