mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-19 17:19:22 +02:00
28 lines
728 B
PHP
28 lines
728 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('resources')) {
|
|
Schema::create('resources', function (Blueprint $table) {
|
|
$table->id('resource_id');
|
|
$table->timestamps(6);
|
|
$table->softDeletes(precision: 6);
|
|
$table->integer('site')->nullable();
|
|
$table->string('link')->nullable();
|
|
$table->integer('external_id')->nullable();
|
|
});
|
|
}
|
|
}
|
|
};
|