<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlterEstimateQuantityTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        DB::statement('ALTER TABLE `estimate_items` CHANGE `quantity` `quantity` DOUBLE(8,2) NOT NULL');
        DB::statement('ALTER TABLE `invoice_items` CHANGE `quantity` `quantity` DOUBLE(8,2) NOT NULL');
        DB::statement('ALTER TABLE `proposal_items` CHANGE `quantity` `quantity` DOUBLE(8,2) NOT NULL');
        DB::statement('ALTER TABLE `expenses` CHANGE `price` `price` DOUBLE(8,2) NOT NULL');
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }

}
