diff --git a/database/migrations/2017_08_03_160105_set_asset_archived_to_zero_default.php b/database/migrations/2017_08_03_160105_set_asset_archived_to_zero_default.php index 5532a65191..12bf1bde3a 100644 --- a/database/migrations/2017_08_03_160105_set_asset_archived_to_zero_default.php +++ b/database/migrations/2017_08_03_160105_set_asset_archived_to_zero_default.php @@ -13,6 +13,9 @@ class SetAssetArchivedToZeroDefault extends Migration */ public function up() { + $platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform(); + $platform->registerDoctrineTypeMapping('enum', 'string'); + Schema::table('assets', function (Blueprint $table) { $table->boolean('archived')->default(0)->change(); });