From a44d4bfef35b4f2137b58338941c6b4456e0e16d Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 21 Jul 2018 15:26:12 +0930 Subject: [PATCH] Fix to ensure we can rename columns in tables with enums See https://github.com/laravel/framework/issues/1186 --- framework/core/src/Database/Migrator.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/core/src/Database/Migrator.php b/framework/core/src/Database/Migrator.php index 2c1272fc0..8d411887c 100644 --- a/framework/core/src/Database/Migrator.php +++ b/framework/core/src/Database/Migrator.php @@ -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'); } /**