mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
31 lines
849 B
PHP
31 lines
849 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
if (! Schema::hasTable('anime')) {
|
|
Schema::create('anime', function (Blueprint $table) {
|
|
$table->id('anime_id');
|
|
$table->timestamps(6);
|
|
$table->softDeletes(precision: 6);
|
|
$table->string('slug');
|
|
$table->string('name');
|
|
$table->integer('year')->nullable();
|
|
$table->integer('season')->nullable();
|
|
$table->integer('format')->nullable();
|
|
$table->text('synopsis')->nullable();
|
|
});
|
|
}
|
|
}
|
|
};
|