mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 02:38:55 +00:00
38 lines
622 B
PHP
38 lines
622 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->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');
|
|
}
|
|
|
|
}
|