<?php

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

class CreateCtdailyqcTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('ctdailyqc', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('machine_id')->unsigned()->nullable();
            $table->date('qcdate')->nullable();
            $table->enum('scan_type', ['A', 'H'])->nullable();
            $table->float('water_hu', 4, 1)->nullable();
            $table->float('water_sd', 4, 1)->nullable();
            $table->boolean('artifacts')->nullable();
            $table->text('notes')->nullable();
            $table->index(['machine_id', 'id']);
            $table->index('qcdate');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('ctdailyqc');
    }
}

<?php

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

class CreateCtdailyqcTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('ctdailyqc', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('machine_id')->unsigned()->nullable();
            $table->date('qcdate')->nullable();
            $table->enum('scan_type', ['Axial', 'Helical'])->nullable();
            $table->float('water_hu', 4, 1)->nullable();
            $table->float('water_sd', 4, 1)->nullable();
            $table->enum('artifacts', ['Y', 'N'])->nullable();
            $table->text('notes')->nullable();
            $table->index(['machine_id', 'id']);
            $table->index('qcdate');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('ctdailyqc');
    }
}

Change scan_type and artifacts fields to enums
Change scan_type and artifacts fields to enums
