From 502e34d88e10c232b58f6642e7e39587c46dfeda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Mon, 2 Feb 2026 19:56:09 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=EC=88=98=EB=8B=B9=20=EC=A7=80?= =?UTF-8?q?=EA=B8=89=20=EC=B6=94=EC=A0=81=20=EC=BB=AC=EB=9F=BC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20=EB=A7=88=EC=9D=B4=EA=B7=B8=EB=A0=88=EC=9D=B4?= =?UTF-8?q?=EC=85=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 1차/2차 납입완료일, 수당지급일 컬럼 추가 - 매니저 수당 관련 컬럼 추가 (첫 구독료, 지급일) Co-Authored-By: Claude Opus 4.5 --- ...ing_columns_to_sales_commissions_table.php | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 database/migrations/2026_02_02_195500_add_payment_tracking_columns_to_sales_commissions_table.php diff --git a/database/migrations/2026_02_02_195500_add_payment_tracking_columns_to_sales_commissions_table.php b/database/migrations/2026_02_02_195500_add_payment_tracking_columns_to_sales_commissions_table.php new file mode 100644 index 0000000..ee10c9d --- /dev/null +++ b/database/migrations/2026_02_02_195500_add_payment_tracking_columns_to_sales_commissions_table.php @@ -0,0 +1,51 @@ +date('first_payment_at')->nullable()->after('payment_date') + ->comment('1차 납입완료일'); + $table->date('first_partner_paid_at')->nullable()->after('first_payment_at') + ->comment('1차 파트너 수당지급일'); + + // 영업파트너 수당 - 2차 + $table->date('second_payment_at')->nullable()->after('first_partner_paid_at') + ->comment('2차 납입완료일'); + $table->date('second_partner_paid_at')->nullable()->after('second_payment_at') + ->comment('2차 파트너 수당지급일'); + + // 매니저 수당 + $table->date('first_subscription_at')->nullable()->after('second_partner_paid_at') + ->comment('첫 구독료 입금일 (매니저 수당 기준)'); + $table->date('manager_paid_at')->nullable()->after('first_subscription_at') + ->comment('매니저 수당지급일'); + }); + } + + public function down(): void + { + Schema::table('sales_commissions', function (Blueprint $table) { + $table->dropColumn([ + 'first_payment_at', + 'first_partner_paid_at', + 'second_payment_at', + 'second_partner_paid_at', + 'first_subscription_at', + 'manager_paid_at', + ]); + }); + } +}; From 7b06644f23733cbeedaf7cfe252b8948b238efe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Mon, 2 Feb 2026 20:16:12 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:gcs=5Furi=20=EB=A7=88=EC=9D=B4=EA=B7=B8?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=85=98=20=EC=BB=AC=EB=9F=BC=20=EC=A1=B4?= =?UTF-8?q?=EC=9E=AC=20=EC=B2=B4=ED=81=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...26_02_02_103000_add_gcs_uri_to_sales_consultations.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/database/migrations/2026_02_02_103000_add_gcs_uri_to_sales_consultations.php b/database/migrations/2026_02_02_103000_add_gcs_uri_to_sales_consultations.php index d884f60..cf5248d 100644 --- a/database/migrations/2026_02_02_103000_add_gcs_uri_to_sales_consultations.php +++ b/database/migrations/2026_02_02_103000_add_gcs_uri_to_sales_consultations.php @@ -12,9 +12,11 @@ */ public function up(): void { - Schema::table('sales_consultations', function (Blueprint $table) { - $table->string('gcs_uri', 500)->nullable()->after('duration')->comment('GCS 저장 URI'); - }); + if (!Schema::hasColumn('sales_consultations', 'gcs_uri')) { + Schema::table('sales_consultations', function (Blueprint $table) { + $table->string('gcs_uri', 500)->nullable()->after('duration')->comment('GCS 저장 URI'); + }); + } } /**