EscolaLMS/Consultations

View on GitHub
database/migrations/2022_02_07_142406_remove_missing_columns.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

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

class RemoveMissingColumns extends Migration
{

    public function up(): void
    {
        Schema::table('consultations', function (Blueprint $table) {
            $table->dropColumn('calendar_url');
        });
    }

    public function down(): void
    {
        Schema::table('consultations', function (Blueprint $table) {
            $table->text('calendar_url')->nullable();
        });
    }
}