Skip to content

A free open source IT asset/license management system

Fixes #3546 - increases size of field values in custom fields for listboxes

snipe4f9a25310378
diff --git a/database/migrations/2017_05_08_195520_increase_size_of_field_values_in_custom_fields.php b/database/migrations/2017_05_08_195520_increase_size_of_field_values_in_custom_fields.php
new file mode 100644
index 0000000000..8b6c12f658
--- /dev/null
+++ b/database/migrations/2017_05_08_195520_increase_size_of_field_values_in_custom_fields.php
@@ -0,0 +1,33 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class IncreaseSizeOfFieldValuesInCustomFields extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::table('custom_fields', function ($table) {
+ $table->text('field_values')->nullable()->default(null)->change();
+ });
+
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::table('custom_fields', function ($table) {
+ $table->string('field_values', 255)->nullable()->default(null)->change();
+ });
+ }
+}