mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Hotfix for dumb enum issue
This commit is contained in:
parent
e7fba08f92
commit
0a506120b7
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue