dbal-laravel-enum maintained by vortgo
Description
DBAL package for laravel migrations. Added field type - enum
Last update
2016/10/21 10:54 (2.5.x-dev)
License
Downloads
511
Tags
comments powered by Disqus
Doctrine DBAL for laravel migrations
Changed files from original package
dbal/lib/Doctrine/DBAL/Schema/Column.php
dbal/lib/Doctrine/DBAL/Types/EnumType.php
Usage
When you need changing field enum, just added in your migrations file
Doctrine\DBAL\Types\Type::addType('enum', 'Doctrine\DBAL\Types\EnumType');
Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');