Commit 1e12a056 authored by Alfonso Rafael Solis Rangel's avatar Alfonso Rafael Solis Rangel
Browse files

Correcciones en el metodo de la llave foranea

parent 931259bd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -13,11 +13,11 @@ public function up(): void
    {
        Schema::create('subgrupos', function (Blueprint $table) {
            $table->id();
            $table->unsingendBigInterger('grupo_id')->nullable();
            $table->unsingendBigInterger('subgrupo_id')->nullable();
            $table->unsignedBigInteger('grupo_id')->nullable();
            $table->unsignedBigInteger('subgrupo_id')->nullable();

            $table->foreign('grupo_id')->references('id')->on('grupos')->nullable();
            $table->foreign('subgrupo_id')->references('id')->on('subgrupo')->nullable();
            $table->foreign('subgrupo_id')->references('id')->on('subgrupos')->nullable();
        });
    }