View file database/upgrades/20210426225422_change_text_in_contacts.php

File size: 588B
<?php

declare(strict_types=1);

use App\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

final class ChangeTextInContacts extends Migration
{
    /**
     * Migrate Up.
     */
    public function up(): void
    {
        $this->schema->table('contacts', function (Blueprint $table) {
            $table->text('text')->nullable()->change();
        });
    }

    /**
     * Migrate Down.
     */
    public function down(): void
    {
        $this->schema->table('contacts', function (Blueprint $table) {
            $table->text('text')->change();
        });
    }
}