Fixes #2535 - increased varachar limit to 2048 for serial

This commit is contained in:
snipe 2016-10-27 21:39:46 -07:00
parent a929b635ff
commit 066d947f1a

View file

@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class IncreaseSerialFieldCapacity extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('licenses', function ($table) {
$table->string('serial', 2048)->nullable()->default(null)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('licenses', function ($table) {
$table->string('serial', 255)->nullable()->default(null)->change();
});
}
}