change the validation

This commit is contained in:
2025-01-27 08:58:45 +03:30
parent ed99ffba18
commit c543afd627
3 changed files with 39 additions and 3 deletions

View File

@@ -0,0 +1,28 @@
<?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('road_patrols', function (Blueprint $table) {
$table->string('fuel_consumption')->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('road_patrols', function (Blueprint $table) {
$table->integer('fuel_consumption')->change();
});
}
};