diff --git a/database/migrations/2021_01_25_095351_add_number_field_to_clients_and_vendors.php b/database/migrations/2021_01_25_095351_add_number_field_to_clients_and_vendors.php index 8eb831650333..8fe15816cd87 100644 --- a/database/migrations/2021_01_25_095351_add_number_field_to_clients_and_vendors.php +++ b/database/migrations/2021_01_25_095351_add_number_field_to_clients_and_vendors.php @@ -14,11 +14,13 @@ class AddNumberFieldToClientsAndVendors extends Migration public function up() { Schema::table('clients', function (Blueprint $table) { - $table->string('number')->nullable(); + $table->renameColumn('id_number', 'number'); + $table->string('id_number')->nullable(); }); Schema::table('vendors', function (Blueprint $table) { - $table->string('number')->nullable(); + $table->renameColumn('id_number', 'number'); + $table->string('id_number')->nullable(); }); }