A free open source IT asset/license management system
Fixes #2672 - model_no field updated to be string
snipe3208522dd147
diff --git a/database/migrations/2016_09_23_140722_fix_modelno_in_consumables_to_string.php b/database/migrations/2016_09_23_140722_fix_modelno_in_consumables_to_string.phpnew file mode 100644index 0000000000..a76ea18189--- /dev/null+++ b/database/migrations/2016_09_23_140722_fix_modelno_in_consumables_to_string.php@@ -0,0 +1,31 @@+<?php++use Illuminate\Database\Schema\Blueprint;+use Illuminate\Database\Migrations\Migration;++class FixModelnoInConsumablesToString extends Migration+{+ /**+ * Run the migrations.+ *+ * @return void+ */+ public function up()+ {+ Schema::table('consumables', function ($table) {+ $table->string('model_no')->nullable()->default(null)->change();+ });+ }++ /**+ * Reverse the migrations.+ *+ * @return void+ */+ public function down()+ {+ Schema::table('consumables', function ($table) {+ $table->integer('model_no')->nullable()->default(null)->change();+ });+ }+}