vortgo / dbal by vortgo
forked from doctrine/dbal

DBAL package for laravel migrations. Added field type - enum
630
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-04-22 15:03:01
Package Statistics
Total Downloads: 630
Monthly Downloads: 0
Daily Downloads: 0
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');