<?php

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

class ChangeTypeOfScrPeriodInCourses extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('courses', function (Blueprint $table) {
            $table->text('scr_period')->nullable()->comment('上課時間/上課教室/授課教師')->change();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('courses', function (Blueprint $table) {
            $table->string('scr_period')->default('')->comment('上課時間/上課教室/授課教師')->change();
        });
    }
}

Change type of scr_period of Course
Change type of scr_period of Course
