<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class ChangePositionColumnSidebar extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('default_temp_conf_sb_widgets', function (Blueprint $table) {
            $table->unsignedInteger('position')->nullable()->change();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('default_temp_conf_sb_widgets', function (Blueprint $table) {
            $table->unsignedInteger('position')->change();
        });
    }
}
