From f77cb3d0f5e3b9bf8b17304c33d307585bb13844 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 17 Nov 2016 16:16:33 -0800 Subject: [PATCH] Increase DB size of state field in locations --- ..._161317_longer_state_field_in_location.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 database/migrations/2016_11_17_161317_longer_state_field_in_location.php 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.php new file mode 100644 index 0000000000..19d52dea3d --- /dev/null +++ b/database/migrations/2016_11_17_161317_longer_state_field_in_location.php @@ -0,0 +1,31 @@ +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(); + }); + } +}