check for phone column & verrion last digit check in installer
This commit is contained in:
parent
07ec9cd28a
commit
fdb9252b2a
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue