Hotfix for dumb enum issue

This commit is contained in:
snipe 2016-09-06 20:01:10 -07:00
parent e7fba08f92
commit 0a506120b7

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