vortgo / dbal by vortgo
forked from doctrine/dbal

DBAL package for laravel migrations. Added field type - enum
632
1
2
Package Data
Maintainer Username: vortgo
Package Create Date: 2016-10-18
Package Last Update: 2016-10-21
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-11 15:06:38
Package Statistics
Total Downloads: 632
Monthly Downloads: 2
Daily Downloads: 1
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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