mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Merge branch 'hotfixes/purchase_cost_standardized' into develop
This commit is contained in:
commit
19592814d9
|
@ -0,0 +1,72 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class IncreasePurchaseCostSize extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('assets', function ($table) {
|
||||
$table->decimal('purchase_cost', 20, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('accessories', function ($table) {
|
||||
$table->decimal('purchase_cost', 20, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('asset_maintenances', function ($table) {
|
||||
$table->decimal('cost', 20, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('components', function ($table) {
|
||||
$table->decimal('purchase_cost', 20, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('consumables', function ($table) {
|
||||
$table->decimal('purchase_cost', 20, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('licenses', function ($table) {
|
||||
$table->decimal('purchase_cost', 20, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('assets', function ($table) {
|
||||
$table->decimal('purchase_cost', 8, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('accessories', function ($table) {
|
||||
$table->decimal('purchase_cost', 13, 4)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('asset_maintenances', function ($table) {
|
||||
$table->decimal('cost', 10, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('components', function ($table) {
|
||||
$table->decimal('purchase_cost', 13, 4)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('consumables', function ($table) {
|
||||
$table->decimal('purchase_cost', 13, 4)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('licenses', function ($table) {
|
||||
$table->decimal('purchase_cost', 8, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue