mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-11-13 17:48:49 +01:00
27 lines
634 B
PHP
27 lines
634 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('groups')) {
|
|
Schema::create('groups', function (Blueprint $table) {
|
|
$table->id('group_id');
|
|
$table->timestamps(6);
|
|
$table->softDeletes(precision: 6);
|
|
$table->string('name');
|
|
$table->string('slug');
|
|
});
|
|
}
|
|
}
|
|
};
|