From 8d210a18cd42ebb38260a2757c499cba1441cf6c Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 5 Apr 2018 14:47:49 +0300 Subject: [PATCH] Work on custom fields --- .../migrations/2018_03_30_115805_add_more_custom_fields.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/database/migrations/2018_03_30_115805_add_more_custom_fields.php b/database/migrations/2018_03_30_115805_add_more_custom_fields.php index 5f980531d828..20ca164b9252 100644 --- a/database/migrations/2018_03_30_115805_add_more_custom_fields.php +++ b/database/migrations/2018_03_30_115805_add_more_custom_fields.php @@ -22,6 +22,8 @@ class AddMoreCustomFields extends Migration ->orWhere('custom_label2', '!=', '') ->orWhere('custom_client_label1', '!=', '') ->orWhere('custom_client_label2', '!=', '') + ->orWhere('custom_contact_label1', '!=', '') + ->orWhere('custom_contact_label2', '!=', '') ->orWhere('custom_invoice_label1', '!=', '') ->orWhere('custom_invoice_label2', '!=', '') ->orWhere('custom_invoice_text_label1', '!=', '') @@ -36,6 +38,8 @@ class AddMoreCustomFields extends Migration 'account2' => 'custom_label2', 'client1' => 'custom_client_label1', 'client2' => 'custom_client_label2', + 'contact1' => 'custom_contact_label1', + 'contact2' => 'custom_contact_label2', 'invoice1' => 'custom_invoice_label1', 'invoice2' => 'custom_invoice_label2', 'invoice_text1' => 'custom_invoice_text_label1', @@ -64,6 +68,8 @@ class AddMoreCustomFields extends Migration $table->dropColumn('custom_label2'); $table->dropColumn('custom_client_label1'); $table->dropColumn('custom_client_label2'); + $table->dropColumn('custom_contact_label1'); + $table->dropColumn('custom_contact_label2'); $table->dropColumn('custom_invoice_label1'); $table->dropColumn('custom_invoice_label2'); $table->dropColumn('custom_invoice_text_label1');