Files
newznab-tmux/database/migrations/2018_01_18_103816_create_genres_table.php
T

41 lines
753 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateGenresTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('genres', function(Blueprint $table)
{
$table->engine = 'InnoDB';
$table->charset = 'utf8';
$table->collation = 'utf8_unicode_ci';
$table->integer('id', true);
$table->string('title');
$table->integer('type')->nullable();
$table->boolean('disabled')->default(0);
});
DB::unprepared('ALTER TABLE genres AUTO_INCREMENT 1000001');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('genres');
}
}