for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace VojtaSvoboda\Reviews\Updates;
use Schema;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;
class CreateCategoriesTable extends Migration
{
public function up()
Schema::create('vojtasvoboda_reviews_categories', function(Blueprint $table)
$table->engine = 'InnoDB';
$table->increments('id')->unsigned();
$table->string('name', 300);
$table->string('slug', 300);
$table->text('description', 300)->nullable();
$table->boolean('enabled')->default(true);
$table->smallInteger('sort_order')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
public function down()
Schema::dropIfExists('vojtasvoboda_reviews_categories');