Updates to existing PR

- updating City value to be 100 instead of 189. The longest city name in the world is 85 characters long, so making it 100 just in case.
- Fixed typo in file name: constrains to constraints
This commit is contained in:
Eric Fleming
2019-01-22 20:28:56 -05:00
parent 77540caf29
commit 9c65c4e3f7
4 changed files with 8 additions and 12 deletions

View File

@@ -3,8 +3,6 @@ using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Microsoft.eShopWeb.Infrastructure.Data;
namespace Microsoft.eShopWeb.Infrastructure.Data.Migrations
{
@@ -182,7 +180,7 @@ namespace Microsoft.eShopWeb.Infrastructure.Data.Migrations
b1.Property<string>("City")
.IsRequired()
.HasMaxLength(189);
.HasMaxLength(100);
b1.Property<string>("Country")
.IsRequired()