Menyelesaikan fitur Basic Data KJPP untuk menambahkan lebih dari satu email kantor, pic reviewer, pic admin, pic marketing

This commit is contained in:
2024-11-07 15:21:31 +07:00
committed by putrakuningan
parent 669c2483f8
commit a326f4c4e5
10 changed files with 450 additions and 313 deletions

View File

@@ -25,14 +25,21 @@ return new class extends Migration
$table->string('postal_code')->nullable();
$table->string('nomor_telepon_kantor')->nullable();
$table->string('email_kantor');
$table->string('detail_email_kantor')->nullable();
$table->string('nama_pimpinan');
$table->string('nomor_hp_pimpinan');
$table->string('nama_pic_reviewer')->nullable();
$table->string('detail_nama_pic_reviewer')->nullable();
$table->string('nomor_hp_pic_reviewer')->nullable();
$table->string('detail_nomor_hp_pic_reviewer')->nullable();
$table->string('nama_pic_admin')->nullable();
$table->string('detail_nama_pic_admin')->nullable();
$table->string('nomor_hp_pic_admin')->nullable();
$table->string('detail_nomor_hp_pic_admin')->nullable();
$table->string('nama_pic_marketing')->nullable();
$table->string('detail_nama_pic_marketing')->nullable();
$table->string('nomor_hp_pic_marketing')->nullable();
$table->string('detail_nomor_hp_pic_marketing')->nullable();
$table->string('ijin_usaha_id');
$table->string('jenis_aset_id');
$table->string('attachment')->nullable();

View File

@@ -1,40 +0,0 @@
<?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('detail_email_kantor')->nullable()->after('email_kantor');
$table->string('detail_nama_pic_reviewer')->nullable()->after('nama_pic_reviewer');
$table->string('detail_nomor_hp_pic_reviewer')->nullable()->after('nomor_hp_pic_reviewer');
$table->string('detail_nama_pic_admin')->nullable()->after('nama_pic_admin');
$table->string('detail_nomor_hp_pic_admin')->nullable()->after('nomor_hp_pic_admin');
$table->string('detail_nama_pic_marketing')->nullable()->after('nama_pic_marketing');
$table->string('detail_nomor_hp_pic_marketing')->nullable()->after('nomor_hp_pic_marketing');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('kjpp', function (Blueprint $table) {
$table->dropColumn('detail_email_kantor');
$table->dropColumn('detail_nama_pic_reviewer');
$table->dropColumn('detail_nomor_hp_pic_reviewer');
$table->dropColumn('detail_nama_pic_admin');
$table->dropColumn('detail_nomor_hp_pic_admin');
$table->dropColumn('detail_nama_pic_marketing');
$table->dropColumn('detail_nomor_hp_pic_marketing');
});
}
};