Increase DB size of state field in locations

This commit is contained in:
snipe 2016-11-17 16:16:33 -08:00
parent 5c70898dbf
commit f77cb3d0f5

View file

@ -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();
});
}
}