ekosistem dan framework
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?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('program_aktivitas', function (Blueprint $table) {
|
||||
$table->foreignId('parent_id')->nullable()->constrained('program_aktivitas')->nullOnDelete();
|
||||
});
|
||||
|
||||
Schema::table('program_target', function (Blueprint $table) {
|
||||
$table->enum('tipe_realisasi', ['manual', 'referensi'])->default('manual');
|
||||
$table->text('value_query')->nullable();
|
||||
});
|
||||
|
||||
Schema::table('program_verifikasi', function (Blueprint $table) {
|
||||
$table->foreignId('realisasi_id')->nullable()->constrained('program_realisasi')->nullOnDelete();
|
||||
$table->dropColumn('aktivitas_id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user