小编Kri*_*nas的帖子

未知列类型"json"请求运行Doctrine 2迁移

关于我的申请的一些背景:

  • ZF2申请
  • doctrine/dbal v2.5.12
  • doctrine/orm v2.5.6
  • doctrine/migrations v1.5.0

问题:如果我运行命令migrations:diff从实体类中的更改生成迁移,则会出现以下异常:

[Doctrine\DBAL\DBALException] Unknown column type "json" requested. 
Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType(). You can get a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap(). 
Run Code Online (Sandbox Code Playgroud)

php database-migration doctrine-orm zend-framework2

1
推荐指数
2
解决办法
4082
查看次数