Xethron / migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
MIT License
3.33k stars 586 forks source link

Doctrine does not support JSON #76

Closed bktz closed 8 years ago

bktz commented 8 years ago

If your database contains JSON data types doctrine will throw:

[Doctrine\DBAL\DBALException] Unknown database type json requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it.

To fix this we can treat JSON as text (using the same mechanism that was used for bit and enum).