Menghapus kolom yang mengandung detail pada tabel kjpp
This commit is contained in:
36
database/migrations/2024_12_11_102623_delete_kjpp_table.php
Normal file
36
database/migrations/2024_12_11_102623_delete_kjpp_table.php
Normal file
@@ -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('kjpp', function (Blueprint $table) {
|
||||||
|
$table->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();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user