Skip to content

A free open source IT asset/license management system

624 B
Raw Blame
<?php

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