Files
keystone/database/migrations/2025_03_31_141005_create_steps_table.php
2025-03-31 15:29:07 +00:00

31 lines
845 B
PHP

<?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->integer('order');
$table->string('status');
$table->longText('script');
$table->longText('logs')->nullable();
$table->text('secrets')->nullable();
$table->dateTime('started_at')->nullable();
$table->dateTime('finished_at')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('steps');
}
};