fitur(kjpp): Tambah validasi dan migrasi modul Lpj > KJPP
- Perbarui kontroler KJPP untuk jenis_aset_id kalau kosong maka isi array kosong jika tidak isi array yang saya isi - Modifikasi aturan validasi permintaan KJPP di bagian jenis_aset_id supaya bisa diisi kosong - Buat migrasi untuk memperbarui struktur tabel KJPP yang jenis_aset_id menjadi nullable
This commit is contained in:
28
database/migrations/2024_12_10_091151_update_kjpp_table.php
Normal file
28
database/migrations/2024_12_10_091151_update_kjpp_table.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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('kjpp', function (Blueprint $table) {
|
||||
$table->string('jenis_aset_id')->nullable()->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('kjpp', function (Blueprint $table) {
|
||||
$table->string('jenis_aset_id')->change();
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user