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'); + }); + } + }