Skip to content

Commit

Permalink
Fixes #2535 - increased varachar limit to 2048 for serial
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Oct 28, 2016
1 parent a929b63 commit 066d947
Showing 1 changed file with 31 additions and 0 deletions.
@@ -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();
});
}
}

0 comments on commit 066d947

Please sign in to comment.