{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/11095","labels_url":"https://api.github.com/repos/laravel/framework/issues/11095/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/11095/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/11095/events","html_url":"https://github.com/laravel/framework/issues/11095","id":119202477,"number":11095,"title":"Error changing column type to json","user":{"login":"PhiloNL","id":1133950,"avatar_url":"https://avatars.githubusercontent.com/u/1133950?v=3","gravatar_id":"","url":"https://api.github.com/users/PhiloNL","html_url":"https://github.com/PhiloNL","followers_url":"https://api.github.com/users/PhiloNL/followers","following_url":"https://api.github.com/users/PhiloNL/following{/other_user}","gists_url":"https://api.github.com/users/PhiloNL/gists{/gist_id}","starred_url":"https://api.github.com/users/PhiloNL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhiloNL/subscriptions","organizations_url":"https://api.github.com/users/PhiloNL/orgs","repos_url":"https://api.github.com/users/PhiloNL/repos","events_url":"https://api.github.com/users/PhiloNL/events{/privacy}","received_events_url":"https://api.github.com/users/PhiloNL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-27T14:13:50Z","updated_at":"2015-11-27T14:13:50Z","closed_at":null,"body":"Not sure if it's a bug, but when changing a column type from varchar to json results in the following error:\r\n\r\n```php\r\nSchema::table('fields', function (Blueprint $table) {\r\n    $table->json('label')->change();\r\n});\r\n```\r\n\r\n```\r\n  [Doctrine\\DBAL\\DBALException]\r\n  Unknown column type \"json\" requested. Any Doctrine type that you use has to be registered\r\n  with \\Doctrine\\DBAL\\Types\\Type::addType(). You can get a list of all the known types with\r\n  \\Doctrine\\DBAL\\Types\\Type::getTypesMap(). If this error occurs during database introspecti\r\n  on then you might have forgot to register all database types for a Doctrine Type. Use Abst\r\n  ractPlatform#registerDoctrineTypeMapping() or have your custom types implement Type#getMap\r\n  pedDatabaseTypes(). If the type name is empty you might have a problem with the cache or f\r\n  orgot some mapping information.\r\n```\r\n\r\nUse `$table->text('label')->change();` instead?"}}