A free open source IT asset/license management system
Fixed #10469 - increased size of supplier address field
snipe8588e9ebf18a
diff --git a/app/Models/Supplier.php b/app/Models/Supplier.phpindex 230a713cda..b904f88340 100755--- a/app/Models/Supplier.php+++ b/app/Models/Supplier.php@@ -14,8 +14,8 @@ class Supplier extends SnipeModelprotected $rules = array('name' => 'required|min:1|max:255|unique_undeleted',- 'address' => 'max:50|nullable',- 'address2' => 'max:50|nullable',+ 'address' => 'max:250|nullable',+ 'address2' => 'max:250|nullable','city' => 'max:255|nullable','state' => 'max:32|nullable','country' => 'max:3|nullable',diff --git a/database/migrations/2021_12_27_151849_change_supplier_address_length.php b/database/migrations/2021_12_27_151849_change_supplier_address_length.phpnew file mode 100644index 0000000000..db31b9b3ac--- /dev/null+++ b/database/migrations/2021_12_27_151849_change_supplier_address_length.php@@ -0,0 +1,36 @@+<?php++use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\Schema;++class ChangeSupplierAddressLength extends Migration+{+ /**+ * Run the migrations.+ *+ * @return void+ */+ public function up()+ {+ Schema::table('suppliers', function (Blueprint $table) {+ //+ $table->string('address', 250)->nullable()->change();+ $table->string('address2', 250)->nullable()->change();+ });+ }++ /**+ * Reverse the migrations.+ *+ * @return void+ */+ public function down()+ {+ Schema::table('suppliers', function (Blueprint $table) {+ //+ $table->text('address', 50)->nullable()->default(null)->change();+ $table->text('address2', 50)->nullable()->default(null)->change();+ });+ }+}