Increase precision of product columsn

This commit is contained in:
David Bomba 2020-12-20 12:05:20 +11:00
parent 94ba7c001b
commit e3f48f9b8b

View File

@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ChangeProductsTableCostResolution extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('products', function (Blueprint $table) {
$table->decimal('cost', 20, 6)->change();
$table->decimal('price', 20, 6)->change();
$table->decimal('quantity', 20, 6)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}