foreign para abajo del todo
This commit is contained in:
parent
4b77fd9b36
commit
bda994bc69
|
@ -15,8 +15,8 @@ public function up(): void
|
|||
$table->id();
|
||||
$table->string('name', 100);
|
||||
$table->unsignedBigInteger('region_id');
|
||||
$table->foreign('region_id')->references('id')->on('regiones');
|
||||
$table->timestamps();
|
||||
$table->foreign('region_id')->references('id')->on('regiones');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@ public function up(): void
|
|||
$table->id();
|
||||
$table->string('name', 100);
|
||||
$table->unsignedBigInteger('barrio_id');
|
||||
$table->foreign('barrio_id')->references('id')->on('barrios');
|
||||
$table->timestamps();
|
||||
$table->foreign('barrio_id')->references('id')->on('barrios');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue