Cambio en el orden en que se bajan las tablas

This commit is contained in:
Alejandro Tasistro 2024-07-11 21:35:56 -03:00
parent d0d323d6f7
commit 0539904155
2 changed files with 3 additions and 3 deletions

View file

@ -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');
}
};

View file

@ -38,7 +38,7 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('pedidos');
Schema::dropIfExists('pedido_producto');
Schema::dropIfExists('pedidos');
}
};