v1.2.0 update column issue

This commit is contained in:
cuneytsenturk
2018-05-01 13:09:47 +03:00
parent b96ccc876e
commit a6f24cf3b1
2 changed files with 28 additions and 38 deletions

View File

@ -1,38 +0,0 @@
<?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();
});
}
}