From fdb9252b2ada5e5513fadedad83d3a545e03e011 Mon Sep 17 00:00:00 2001 From: rahul shukla Date: Fri, 28 Jun 2019 15:18:48 +0530 Subject: [PATCH] check for phone column & verrion last digit check in installer --- .../2019_06_04_114009_add_phone_column_in_customers_table.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/Webkul/Customer/src/Database/Migrations/2019_06_04_114009_add_phone_column_in_customers_table.php b/packages/Webkul/Customer/src/Database/Migrations/2019_06_04_114009_add_phone_column_in_customers_table.php index 9cdeb24ca..324518592 100644 --- a/packages/Webkul/Customer/src/Database/Migrations/2019_06_04_114009_add_phone_column_in_customers_table.php +++ b/packages/Webkul/Customer/src/Database/Migrations/2019_06_04_114009_add_phone_column_in_customers_table.php @@ -14,7 +14,9 @@ class AddPhoneColumnInCustomersTable extends Migration public function up() { Schema::table('customers', function (Blueprint $table) { - $table->string('phone')->unique()->nullable(); + if (! Schema::hasColumn('customers', 'phone')) { + $table->string('phone')->unique()->nullable(); + } }); }