vortgo / dbal-laravel-enum
DBAL package for laravel migrations. Added field type - enum
v2.5.6
2016-10-21 10:54 UTC
Requires
- php: ^5.6 || ^7.0
Replaces
- dev-master / 2.6.x-dev
- 2.5.x-dev
- v2.5.6
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.5.0-RC2
- v2.5.0-RC1
- v2.5.0-BETA3
- v2.5.0-BETA2
- 2.4.x-dev
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- 2.4.0-RC2
- 2.4.0-RC1
- 2.4.0-BETA2
- 2.4.0-BETA1
- 2.3.x-dev
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.3.0-RC4
- 2.3.0-RC3
- 2.3.0-RC2
- 2.3.0-RC1
- 2.3.0-BETA1
- 2.2.x-dev
- 2.2.2
- 2.2.1
- 2.2.0
- 2.2.0-RC3
- 2.2.0-RC2
- 2.2.0-RC1
- 2.2.0-BETA2
- 2.2.0-beta1
- 2.1.x-dev
- 2.1.7
- 2.1.6
- 2.1.5
- 2.0.x-dev
- dev-develop
- dev-sql-92-standard-unique-constraint
- dev-cleanup/remove-5.5-support
- dev-docs/remove-2-4-from-readme
- dev-pgsql-connection-test
- dev-hotfix/+714-disable-prepares-on-pgsql-for-php-5.6
This package is not auto-updated.
Last update: 2024-12-11 20:18:47 UTC
README
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');