From aec0b75a5bdef5a8181d5d37313aedbaa25ebab2 Mon Sep 17 00:00:00 2001 From: Tb Fajri Date: Mon, 12 Feb 2024 08:47:21 +0700 Subject: [PATCH] update migration database --- ...746_add_link_document_to_members_table.php | 32 +++++++++++++++++++ .../pages/CustomerService/FinalLog/Detail.tsx | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2024_02_12_083746_add_link_document_to_members_table.php diff --git a/database/migrations/2024_02_12_083746_add_link_document_to_members_table.php b/database/migrations/2024_02_12_083746_add_link_document_to_members_table.php new file mode 100644 index 00000000..f71b318b --- /dev/null +++ b/database/migrations/2024_02_12_083746_add_link_document_to_members_table.php @@ -0,0 +1,32 @@ +string('link_document')->after('reason')->nullable()->default(null); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('members', function (Blueprint $table) { + $table->dropColumn('link_document'); + }); + } +}; diff --git a/frontend/dashboard/src/pages/CustomerService/FinalLog/Detail.tsx b/frontend/dashboard/src/pages/CustomerService/FinalLog/Detail.tsx index 1231aa24..e770733a 100644 --- a/frontend/dashboard/src/pages/CustomerService/FinalLog/Detail.tsx +++ b/frontend/dashboard/src/pages/CustomerService/FinalLog/Detail.tsx @@ -200,7 +200,7 @@ export default function Detail() { Submission Date - {requestLog?.approved_final_log_at ? fDateTimesecond(requestLog?.approved_final_log_at) : '-'} + {requestLog?.submission_date ? fDateTimesecond(requestLog?.submission_date) : '-'}