mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Make purchase cost longer and more standardized
This commit is contained in:
parent
84e06f4642
commit
08c7701f17
|
@ -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->string('purchase_cost', 20, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('accessories', function ($table) {
|
||||
$table->string('purchase_cost', 20, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('asset_maintenances', function ($table) {
|
||||
$table->string('cost', 20, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('components', function ($table) {
|
||||
$table->string('purchase_cost', 20, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('consumables', function ($table) {
|
||||
$table->string('purchase_cost', 20, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('licenses', function ($table) {
|
||||
$table->string('purchase_cost', 20, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('assets', function ($table) {
|
||||
$table->string('purchase_cost', 8, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('accessories', function ($table) {
|
||||
$table->string('purchase_cost', 13, 4)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('asset_maintenances', function ($table) {
|
||||
$table->string('cost', 10, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('components', function ($table) {
|
||||
$table->string('purchase_cost', 13, 4)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('consumables', function ($table) {
|
||||
$table->string('purchase_cost', 13, 4)->nullable()->default(null)->change();
|
||||
});
|
||||
|
||||
Schema::table('licenses', function ($table) {
|
||||
$table->string('purchase_cost', 8, 2)->nullable()->default(null)->change();
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue