<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class UpdateBreaksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('breaks', function (Blueprint $table) {
            $table->string('user_repair')->nullable();
            $table->date('day_repair')->nullable();
            $table->integer('cost')->default(0);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::table('breaks', function (Blueprint $table) {
            $table->dropColumn('user_repair');
            $table->dropColumn('day_repair');
            $table->dropColumn('cost');
        });
    }
}
