From 2afa04a82e79b872ac13276e2c9b1465d8f11727 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Thu, 21 Nov 2024 12:59:41 +0700 Subject: [PATCH] Perbarui tabel persetujuan_penawaran Menghapus kolom attachment dan menambahkan kolom file_persetujuan_penawaran, surat_representasi, dan bukti_bayar pada tabel persetujuan_penawaran. Juga menghapus foreign key 'region_id' yang terkait dengan kolom attachment. --- ...855_update_persetujuan_penawaran_table.php | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 database/migrations/2024_11_21_113855_update_persetujuan_penawaran_table.php diff --git a/database/migrations/2024_11_21_113855_update_persetujuan_penawaran_table.php b/database/migrations/2024_11_21_113855_update_persetujuan_penawaran_table.php new file mode 100644 index 0000000..4502039 --- /dev/null +++ b/database/migrations/2024_11_21_113855_update_persetujuan_penawaran_table.php @@ -0,0 +1,44 @@ +dropForeign(['region_id']); + $table->dropColumn('attachment'); + + // Add new columns for file attachments + $table->string('file_persetujuan_penawaran')->nullable(); + $table->string('surat_representasi')->nullable(); + $table->string('bukti_bayar')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('persetujuan_penawaran', function (Blueprint $table) { + // Reverse the changes + $table->string('attachment')->nullable(); + + $table->dropColumn('file_persetujuan_penawaran'); + $table->dropColumn('surat_representasi'); + $table->dropColumn('bukti_bayar'); + }); + } + }