Browse Source

cambios

main
sergiomarquez778 3 weeks ago
parent
commit
611c9dc918
  1. 1
      app/Models/Capacidad.php
  2. 2
      database/factories/CapacidadFactory.php
  3. 28
      database/migrations/2025_03_13_050724_add_tipo_combustible_to_tipos_veiculos_table.php
  4. 2
      database/migrations/2025_03_13_133629_create_capacidads_table.php

1
app/Models/Capacidad.php

@ -5,6 +5,7 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Capacidad extends Model
{
use HasFactory;

2
database/factories/CapacidadFactory.php

@ -17,7 +17,7 @@ class CapacidadFactory extends Factory
public function definition(): array
{
return [
//
];
}

28
database/migrations/2025_03_13_050724_add_tipo_combustible_to_tipos_veiculos_table.php

@ -1,28 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('tipos_veiculos', function (Blueprint $table) {
$table->string('tipo_combustible')->after('nombre')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('tipos_veiculos', function (Blueprint $table) {
$table->dropColumn('tipo_combustible');
});
}
};

2
database/migrations/2025_03_13_133629_create_capacidads_table.php

@ -13,7 +13,7 @@ return new class extends Migration
{
Schema::create('capacidades', function (Blueprint $table) {
$table->id();
$table->integer('capacidad')->unique();
$table->integer('capacidad');
$table->timestamps();
});
}

Loading…
Cancel
Save