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

Relacion de contactos y instituciones

parent 886962d2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -38,11 +38,11 @@ public function up(): void
            $table->unsignedBigInteger('profesion_id')->nullable();
            $table->unsignedBigInteger('cargo_id')->nullable();
            $table->unsignedBigInteger('caracteristica_id')->nullable();
            //$table->unsignedBigInteger('institucion_id')->nullable();
            $table->unsignedBigInteger('institucion_id')->nullable();
            
            $table->foreign('conyuge_id')->references('id')->on('contactos')->nullable();
            $table->foreign('profesion_id')->references('id')->on('profesions')->nullable();
            //$table->foreign('institucion_id')->references('id')->on('')->nullable();
            $table->foreign('institucion_id')->references('id')->on('instituciones')->nullable();
            $table->foreign('cargo_id')->references('id')->on('cargos')->nullable();
            $table->foreign('caracteristica_id')->references('id')->on('caracteristicas')->nullable();