<?php

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

class AddDatesToServiceRequestsTable extends Migration
{
    public function up()
    {
        Schema::table('service_requests', function (Blueprint $table) {
            $table->date('delivery_date')->nullable()->after('content')->comment('お届け希望日');
            $table->date('return_date')->nullable()->after('delivery_date')->comment('返却予定日');
        });
    }

    public function down()
    {
        Schema::table('service_requests', function (Blueprint $table) {
            $table->dropColumn(['delivery_date', 'return_date']);
        });
    }
}
