This commit is contained in:
Dwi Swandhana
2026-06-11 12:07:23 +08:00
parent f7cb75c9cf
commit d3ac4fc33f
2 changed files with 29 additions and 0 deletions
@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('periksa', function (Blueprint $table) {
if (!Schema::hasColumn('periksa', 'asalpengirim')) {
$table->string('asalpengirim', 150)->nullable()->after('order_id');
}
});
}
public function down(): void
{
Schema::table('periksa', function (Blueprint $table) {
if (Schema::hasColumn('periksa', 'asalpengirim')) {
$table->dropColumn('asalpengirim');
}
});
}
};