Fix to ensure we can rename columns in tables with enums

See https://github.com/laravel/framework/issues/1186
This commit is contained in:
Toby Zerner 2018-07-21 15:26:12 +09:30
parent cd31f11b64
commit a44d4bfef3

View File

@ -63,6 +63,9 @@ class Migrator
$this->repository = $repository;
$this->schemaBuilder = $connection->getSchemaBuilder();
// Workaround for https://github.com/laravel/framework/issues/1186
$connection->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
}
/**