<?php namespace TPS\Birzha\Updates;

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

class BuilderTableCreateTpsBirzhaCategory extends Migration
{
    public function up()
    {
        Schema::create('tps_birzha_category', function($table)
        {
            $table->engine = 'InnoDB';
            $table->increments('id')->unsigned();
            $table->timestamp('deleted_at')->nullable();
            $table->timestamp('created_at')->nullable();
            $table->timestamp('updated_at')->nullable();
            $table->string('title');
            $table->text('meta_desc')->nullable();
            $table->string('icon')->nullable();
        });
    }
    
    public function down()
    {
        Schema::dropIfExists('tps_birzha_category');
    }
}
