error fix

This commit is contained in:
Abhishek Mali
2025-12-01 12:45:25 +05:30
parent 64d8939208
commit 3845972c5c
2 changed files with 151 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?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()
{
Schema::table('orders', function (Blueprint $table) {
$table->softDeletes(); // creates deleted_at column
});
}
public function down()
{
Schema::table('orders', function (Blueprint $table) {
$table->dropColumn('deleted_at');
});
}
};