Cambio en el orden en que se bajan las tablas
This commit is contained in:
parent
d0d323d6f7
commit
0539904155
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ return new class extends Migration
|
|||
|
||||
Schema::create('barrios', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nombre', 100);
|
||||
$table->string('nombre', 100);
|
||||
$table->unsignedBigInteger('region_id');
|
||||
$table->timestamps();
|
||||
$table->foreign('region_id')->references('id')->on('regiones');
|
||||
|
@ -31,7 +31,7 @@ return new class extends Migration
|
|||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('regiones');
|
||||
Schema::dropIfExists('barrios');
|
||||
Schema::dropIfExists('regiones');
|
||||
}
|
||||
};
|
||||
|
|
|
@ -38,7 +38,7 @@ return new class extends Migration
|
|||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('pedidos');
|
||||
Schema::dropIfExists('pedido_producto');
|
||||
Schema::dropIfExists('pedidos');
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue