mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Fixes for weird stupid enum issue
This commit is contained in:
parent
e86adccf19
commit
0e28f36678
|
@ -12,6 +12,10 @@ class MakePurchaseCostNullable extends Migration
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$platform = Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform();
|
||||||
|
$platform->registerDoctrineTypeMapping('enum', 'string');
|
||||||
|
|
||||||
Schema::table('assets', function ($table) {
|
Schema::table('assets', function ($table) {
|
||||||
$table->decimal('purchase_cost',8,2)->nullable()->default(null)->change();
|
$table->decimal('purchase_cost',8,2)->nullable()->default(null)->change();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue