decimal quantity

This commit is contained in:
denisdulici
2018-04-30 11:49:47 +03:00
parent 1b47c33b54
commit 1c8bcd8cb2
15 changed files with 84 additions and 45 deletions

View File

@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
class ChangeQuantityColumnInvoiceBillItems extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('invoice_items', function ($table) {
$table->double('quantity', 7, 2)->change();
});
Schema::table('bill_items', function ($table) {
$table->double('quantity', 7, 2)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('invoice_items', function ($table) {
$table->integer('quantity')->change();
});
Schema::table('bill_items', function ($table) {
$table->integer('quantity')->change();
});
}
}