laravel/framework — pull request #2133 by toopay (2013-08-18 15:31:08+00:00)
Title: Ensure Doctrine to map MySQL enum type

I receive `[Doctrine\DBAL\DBALException]
Unknown database type enum requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it.` error while running the migration.

How to reproduce :
* Create a migration to build a table that contains `enum` column like :

```php
engine = 'MyISAM';

$table->increments('id');
$table->string('name')->unique();
$table->string('slug')->unique();
$table->timestamps();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('videos');
}

}

```

* Run above migration.
* Create another migration to alter these table that contains a call to `Schema::hasCollumn` method :

```php
text('embed');
});
}
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
if (Schema::hasColumn('videos', 'embed'))
{
Schema::table('videos', function($table)
{
$table->dropColumn('embed');
});
}
}

}
```

* Run migration again.

This patch ensure Doctrine to map MySQL enum type.

Thanks.