Files
KanbanGit/database/migrations/2026_03_24_234007_create_projects_table.php
2026-04-13 01:04:06 +02:00

32 lines
741 B
PHP

<?php
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
{
Schema::create('projects', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('key', 5)->unique();
$table->boolean('show_author')->default(true);
$table->boolean('show_story_points')->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('projects');
}
};