From 87bba2186ebf0ac60c9be3e4a463be6f264a3971 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 --- src/Database/Migrator.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Database/Migrator.php b/src/Database/Migrator.php index 2c1272fc0..8d411887c 100644 --- a/src/Database/Migrator.php +++ b/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'); } /**