<?php namespace Tps\Shops\Updates;

use Schema;
use October\Rain\Database\Updates\Migration;

class BuilderTableUpdateTpsShopsCategories3 extends Migration
{
    public function up()
    {
        Schema::table('tps_shops_categories', function($table)
        {
            $table->integer('top_category_id');
            $table->dropColumn('type');
        });
    }
    
    public function down()
    {
        Schema::table('tps_shops_categories', function($table)
        {
            $table->dropColumn('top_category_id');
            $table->text('type');
        });
    }
}
