Skip to content

A free open source IT asset/license management system

Added support for enum that was added :(

snipe5f3147cf364b
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();
});