- Remove unused FeaturesController (empty stubs, no routes) - Remove ConvertSpatialFile CLI command (unused; service used in LayerManager) - Remove MigrateGeojsonToFeatures CLI command (one-shot migration, not referenced) - Remove .claude/worktrees/ (11 old agent worktrees from June) - Apply Laravel Pint formatting across 219 files (style only, no functional changes) Tests: 101 passing (319 assertions) API routes: unchanged (8 routes intact)
33 lines
1.0 KiB
PHP
33 lines
1.0 KiB
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()
|
|
{
|
|
Schema::create('phases', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->foreignId('project_id')->constrained()->onDelete('cascade');
|
|
$table->string('name');
|
|
$table->text('description')->nullable();
|
|
$table->integer('order')->default(0);
|
|
$table->string('color', 7)->default('#3b82f6'); // hex color
|
|
$table->integer('progress_percent')->default(0);
|
|
$table->date('planned_start')->nullable();
|
|
$table->date('planned_end')->nullable();
|
|
$table->date('actual_start')->nullable();
|
|
$table->date('actual_end')->nullable();
|
|
$table->timestamps();
|
|
$table->softDeletes();
|
|
});
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('phases');
|
|
}
|
|
};
|