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

Cambio en la migracion para que al eliminar o actualizar un contacto borre sus llaves foraneas

parent dad71c62
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ public function up(): void
            $table->unsignedBigInteger('contacto_id');
            $table->timestamps();

            $table->foreign('contacto_id')->references('id')->on('contactos');
            $table->foreign('contacto_id')->references('id')->on('contactos')->onDelete('cascade')->onUpdate('cascade');
        });
    }

+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ public function up(): void
            $table->unsignedBigInteger('contacto_id');
            $table->timestamps();

            $table->foreign('contacto_id')->references('id')->on('contactos');
            $table->foreign('contacto_id')->references('id')->on('contactos')->onDelete('cascade')->onUpdate('cascade');
        });
    }