Files
newznab-tmux/database/migrations/2017_10_12_124141_create_genres_table.php
T
2017-10-12 15:59:42 +02:00

33 lines
665 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateGenresTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('genres', function (Blueprint $table) {
$table->integer('id', true);
$table->string('title');
$table->integer('type')->nullable()->default(null);
$table->boolean('disabled')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('genres');
}
}