This commit is contained in:
Dwi Swandhana
2026-07-04 05:13:44 +07:00
parent 67ff560077
commit d725332bc3
5 changed files with 2391 additions and 213 deletions

No files matched your search

@@ -17,6 +17,7 @@ return new class extends Migration
$table->string('subpoli', 250)->nullable();
$table->string('subsubpoli', 250)->nullable();
$table->string('modaliti', 150)->nullable();
$table->string('kelompok', 150)->nullable();
$table->string('modaliti2', 150)->nullable();
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent();
@@ -0,0 +1,32 @@
<?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('poli', function (Blueprint $table) {
if (!Schema::hasColumn('poli', 'kelompok')) {
$table->string('kelompok', 150)->nullable();
}
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('poli', function (Blueprint $table) {
if (Schema::hasColumn('poli', 'kelompok')) {
$table->dropColumn('kelompok');
}
});
}
};