Fixes for weird stupid enum issue

This commit is contained in:
snipe 2016-09-06 20:00:37 -07:00
parent e86adccf19
commit 0e28f36678

View file

@ -12,6 +12,10 @@ class MakePurchaseCostNullable extends Migration
*/
public function up()
{
$platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform();
$platform->registerDoctrineTypeMapping('enum', 'string');
Schema::table('assets', function ($table) {
$table->decimal('purchase_cost',8,2)->nullable()->default(null)->change();
});