Looking to hire Laravel developers? Try LaraJobs
This package is not available.

dbal-laravel-enum maintained by vortgo

Description
DBAL package for laravel migrations. Added field type - enum
Last update
2016/10/21 12:54 (2.5.x-dev)
License
Downloads
633

Comments
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');