EscolaLMS/Consultations

View on GitHub
database/migrations/2024_09_27_053102_add_consultation_teacher_table.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method foreign from undeclared class \Illuminate\Database\Schema\Blueprint
Open

            $table->foreign('teacher_id')->references('id')->on('users')->onDelete('CASCADE');

Call to method foreign from undeclared class \Illuminate\Database\Schema\Blueprint
Open

            $table->foreign('consultation_id')->references('id')->on('consultations')->onDelete('CASCADE');

Parameter $table has undeclared type \Illuminate\Database\Schema\Blueprint
Open

        Schema::create('consultation_teachers', function (Blueprint $table) {

Call to method id from undeclared class \Illuminate\Database\Schema\Blueprint
Open

            $table->id();

Call to method bigInteger from undeclared class \Illuminate\Database\Schema\Blueprint
Open

            $table->bigInteger('teacher_id')->unsigned();

Class extends undeclared class \Illuminate\Database\Migrations\Migration
Open

return new class extends Migration

Call to method bigInteger from undeclared class \Illuminate\Database\Schema\Blueprint
Open

            $table->bigInteger('consultation_id')->unsigned()->index();

Call to method dropIfExists from undeclared class \Illuminate\Support\Facades\Schema
Open

        Schema::dropIfExists('consultation_teachers');

Call to method create from undeclared class \Illuminate\Support\Facades\Schema
Open

        Schema::create('consultation_teachers', function (Blueprint $table) {

There are no issues that match your filters.

Category
Status