From 39fa158160f6e0d00caae754226a1ca50cdecabc Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 6 Apr 2017 21:35:27 +0300 Subject: [PATCH] Check for bcc_email --- .../migrations/2017_03_16_085702_add_gateway_fee_location.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/database/migrations/2017_03_16_085702_add_gateway_fee_location.php b/database/migrations/2017_03_16_085702_add_gateway_fee_location.php index 7752f70867dc..190defdabbc1 100644 --- a/database/migrations/2017_03_16_085702_add_gateway_fee_location.php +++ b/database/migrations/2017_03_16_085702_add_gateway_fee_location.php @@ -84,7 +84,6 @@ class AddGatewayFeeLocation extends Migration from accounts;'); Schema::table('accounts', function ($table) { - $table->dropColumn('bcc_email'); $table->dropColumn('email_subject_invoice'); $table->dropColumn('email_subject_quote'); $table->dropColumn('email_subject_payment'); @@ -98,6 +97,9 @@ class AddGatewayFeeLocation extends Migration $table->dropColumn('email_template_reminder2'); $table->dropColumn('email_template_reminder3'); + if (Schema::hasColumn('accounts', 'bcc_email')) { + $table->dropColumn('bcc_email'); + } if (Schema::hasColumn('accounts', 'auto_wrap')) { $table->dropColumn('auto_wrap'); }