From 907240e003ae782357072df21df823ef92e240c1 Mon Sep 17 00:00:00 2001 From: rahmatrafli1 Date: Thu, 12 Dec 2024 08:20:14 +0700 Subject: [PATCH] Menghapus kolom yang mengandung detail pada tabel kjpp --- .../2024_12_11_102623_delete_kjpp_table.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 database/migrations/2024_12_11_102623_delete_kjpp_table.php diff --git a/database/migrations/2024_12_11_102623_delete_kjpp_table.php b/database/migrations/2024_12_11_102623_delete_kjpp_table.php new file mode 100644 index 0000000..7ddba24 --- /dev/null +++ b/database/migrations/2024_12_11_102623_delete_kjpp_table.php @@ -0,0 +1,36 @@ +dropColumn(['detail_email_kantor', 'detail_nama_pimpinan', 'detail_nomor_hp_pimpinan', 'detail_nama_pic_reviewer', 'detail_nomor_hp_pic_reviewer', 'detail_nama_pic_admin', 'detail_nomor_hp_pic_admin', 'detail_nama_pic_marketing', 'detail_nomor_hp_pic_marketing']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('kjpp', function (Blueprint $table) { + $table->string('detail_email_kantor')->nullable(); + $table->string('detail_nama_pimpinan')->nullable(); + $table->string('detail_nomor_hp_pimpinan')->nullable(); + $table->string('detail_nama_pic_reviewer')->nullable(); + $table->string('detail_nomor_hp_pic_reviewer')->nullable(); + $table->string('detail_nama_pic_admin')->nullable(); + $table->string('detail_nomor_hp_pic_admin')->nullable(); + $table->string('detail_nama_pic_marketing')->nullable(); + $table->string('detail_nomor_hp_pic_marketing')->nullable(); + }); + } +};