mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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()
|
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', 20, 2)->nullable()->default(null)->change();
|
$table->decimal('purchase_cost', 20, 2)->nullable()->default(null)->change();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue