Add enum conversation

Tho I don’t know why we need this. I don’t see any enums left in the DB structure.
This commit is contained in:
snipe 2016-11-17 16:55:22 -08:00
parent e8f45555ff
commit eb4562a28b

View file

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