Files
newznab-tmux/database/migrations/2018_01_18_103816_create_genres_table.php
T
2023-03-30 14:15:45 +00:00

34 lines
804 B
PHP

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