mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Added enum conversion
This commit is contained in:
parent
554a6e4fd6
commit
54848b5edf
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue