menambahkan Feature Pembayaran di Admin LPJ

This commit is contained in:
Andy Chaerudin
2024-12-23 18:39:42 +07:00
parent c1a62a147a
commit fb59e0830c
8 changed files with 483 additions and 2 deletions

View File

@@ -26,7 +26,11 @@ return new class extends Migration
public function down(): void
{
Schema::table('permohonan', function (Blueprint $table) {
$table->dropColumn('registrasi_catatan');
$table->dropColumn('registrasi_by');
$table->dropColumn('registrasi_at');
$table->dropColumn('jenis_penilaian_id');
$table->dropColumn('region_id');
});
}
};

View File

@@ -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('permohonan', function (Blueprint $table) {
$table->text('approve_keterangan_bayar')->nullable()->after('status_bayar')->comment('kebutuhan untuk feature Pembayaran di adminl lpj');
$table->unsignedBigInteger('approve_bayar_by')->nullable()->after('approve_keterangan_bayar')->comment('kebutuhan untuk feature Pembayaran di adminl lpj');
$table->timestamp('approve_bayar_at')->nullable()->after('approve_bayar_by')->comment('kebutuhan untuk feature Pembayaran di adminl lpj');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('permohonan', function (Blueprint $table) {
$table->dropColumn('approve_keterangan_bayar');
$table->dropColumn('approve_bayar_by');
$table->dropColumn('approve_bayar_at');
});
}
};