From 5f3147cf364be7234ffbdef350beb51b765dd416 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 20 Feb 2019 21:04:03 -0800 Subject: [PATCH] Added support for enum that was added :( --- database/migrations/2019_02_20_234421_make_serial_nullable.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/database/migrations/2019_02_20_234421_make_serial_nullable.php b/database/migrations/2019_02_20_234421_make_serial_nullable.php index fc28932a83..2f329055ec 100644 --- a/database/migrations/2019_02_20_234421_make_serial_nullable.php +++ b/database/migrations/2019_02_20_234421_make_serial_nullable.php @@ -13,6 +13,9 @@ class MakeSerialNullable extends Migration */ public function up() { + $platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform(); + $platform->registerDoctrineTypeMapping('enum', 'string'); + Schema::table('assets', function (Blueprint $table) { $table->string('serial')->nullable()->default(null)->change(); });