A free open source IT asset/license management system
Increase DB size of state field in locations
snipef77cb3d0f5e3
diff --git a/database/migrations/2016_11_17_161317_longer_state_field_in_location.php b/database/migrations/2016_11_17_161317_longer_state_field_in_location.phpnew file mode 100644index 0000000000..19d52dea3d--- /dev/null+++ b/database/migrations/2016_11_17_161317_longer_state_field_in_location.php@@ -0,0 +1,31 @@+<?php++use Illuminate\Database\Schema\Blueprint;+use Illuminate\Database\Migrations\Migration;++class LongerStateFieldInLocation extends Migration+{+ /**+ * Run the migrations.+ *+ * @return void+ */+ public function up()+ {+ Schema::table('locations', function ($table) {+ $table->string('state', 20)->nullable()->default(null)->change();+ });+ }++ /**+ * Reverse the migrations.+ *+ * @return void+ */+ public function down()+ {+ Schema::table('locations', function ($table) {+ $table->string('state', 2)->nullable()->default(null)->change();+ });+ }+}