<?php

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

class MakeCiteAsTextColumn extends Migration
{
    public function up()
    {
        Schema::table('issues', function (Blueprint $table) {
            $table->text('cite_as')->nullable()->change();
        });

        Schema::table('issue_articles', function (Blueprint $table) {
            $table->text('cite_as')->nullable()->change();
        });
    }

    public function down()
    {
        Schema::table('issues', function (Blueprint $table) {
            $table->string('cite_as')->nullable()->change();
        });

        Schema::table('issue_articles', function (Blueprint $table) {
            $table->string('cite_as')->nullable()->change();
        });
    }
}

Make `cite_as` text columns to support longer lengths
Make `cite_as` text columns to support longer lengths
