{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/882","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/882/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/882/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/882/events","html_url":"https://github.com/aspnet/EntityFramework/issues/882","id":45932211,"number":882,"title":"Migrations: MaxLength not honored","user":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/pri0","name":"pri0","color":"e11d21"},{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/task","name":"task","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"bricelam","id":1226749,"avatar_url":"https://avatars.githubusercontent.com/u/1226749?v=3","gravatar_id":"","url":"https://api.github.com/users/bricelam","html_url":"https://github.com/bricelam","followers_url":"https://api.github.com/users/bricelam/followers","following_url":"https://api.github.com/users/bricelam/following{/other_user}","gists_url":"https://api.github.com/users/bricelam/gists{/gist_id}","starred_url":"https://api.github.com/users/bricelam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricelam/subscriptions","organizations_url":"https://api.github.com/users/bricelam/orgs","repos_url":"https://api.github.com/users/bricelam/repos","events_url":"https://api.github.com/users/bricelam/events{/privacy}","received_events_url":"https://api.github.com/users/bricelam/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/7","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/7/labels","id":666128,"number":7,"title":"7.0.0","description":"","creator":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"open_issues":162,"closed_issues":98,"state":"open","created_at":"2014-05-21T19:25:32Z","updated_at":"2015-01-17T01:15:58Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2014-10-15T23:28:58Z","updated_at":"2015-01-19T18:04:56Z","closed_at":null,"body":"Adding a maxLength parameter to a string column does not result in the correct data type being generated. I.e. the following code generates nvarchar(max) for RoleId\r\n\r\n```\r\nmigrationBuilder.CreateTable(\"AspNetRoleClaims\",\r\n    c => new\r\n        {\r\n            Id = c.Int(nullable: false, identity: true),\r\n            ClaimType = c.String(),\r\n            ClaimValue = c.String(),\r\n            RoleId = c.String(maxLength: 128)\r\n        })\r\n    .PrimaryKey(\"PK_AspNetRoleClaims\", t => t.Id);\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/70535960","html_url":"https://github.com/aspnet/EntityFramework/issues/882#issuecomment-70535960","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/882","id":70535960,"user":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T18:04:56Z","updated_at":"2015-01-19T18:04:56Z","body":"@ScriptiZer - @bricelam is busy tidying up a whole bunch of migrations stuff at the moment, so this should be resolved shortly (if it isn't already)."}}