mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-01 04:19:22 +08:00
23 lines
479 B
PHP
23 lines
479 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
Schema::create('teams', function (Blueprint $table): void {
|
|
$table->id();
|
|
$table->string('name');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('teams');
|
|
}
|
|
};
|