Migration fix

This commit is contained in:
Ale Gallo 2023-11-27 14:22:56 +01:00
parent f7634e6115
commit 845b430c17

View file

@ -21,7 +21,7 @@ return new class extends Migration
// sport type defined in pivot table
// pics defined in pivot table - first pic is the cover
$table->unsignedBigInteger('route_category_id');
$table->foreign('route_category_id')->references('id')->on('categories')->onDelete('cascade');
$table->foreign('route_category_id')->references('id')->on('route_categories')->onDelete('cascade');
$table->timestamps();
$table->softDeletes();