Added enum conversion

This commit is contained in:
snipe 2016-11-17 16:56:08 -08:00
parent 554a6e4fd6
commit 54848b5edf

View file

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