deployments wip

This commit is contained in:
2025-03-31 14:27:47 +00:00
parent d150f57c8f
commit 374ce90160
10 changed files with 147 additions and 22 deletions

View File

@@ -0,0 +1,25 @@
<?php
use App\Models\Deployment;
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('steps', function (Blueprint $table) {
$table->id();
$table->foreignIdFor(Deployment::class);
$table->longText('script');
$table->longText('logs')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('steps');
}
};