feature/columna-totales #4
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ return new class extends Migration
|
||||||
|
|
||||||
Schema::create('barrios', function (Blueprint $table) {
|
Schema::create('barrios', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('nombre', 100);
|
$table->string('nombre', 100);
|
||||||
$table->unsignedBigInteger('region_id');
|
$table->unsignedBigInteger('region_id');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
$table->foreign('region_id')->references('id')->on('regiones');
|
$table->foreign('region_id')->references('id')->on('regiones');
|
||||||
|
@ -31,7 +31,7 @@ return new class extends Migration
|
||||||
*/
|
*/
|
||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
Schema::dropIfExists('regiones');
|
|
||||||
Schema::dropIfExists('barrios');
|
Schema::dropIfExists('barrios');
|
||||||
|
Schema::dropIfExists('regiones');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -38,7 +38,7 @@ return new class extends Migration
|
||||||
*/
|
*/
|
||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
Schema::dropIfExists('pedidos');
|
|
||||||
Schema::dropIfExists('pedido_producto');
|
Schema::dropIfExists('pedido_producto');
|
||||||
|
Schema::dropIfExists('pedidos');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue