Files
keystone/database/migrations/2025_03_31_141005_create_steps_table.php
2025-03-31 14:27:47 +00:00

26 lines
607 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->longText('script');
$table->longText('logs')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('steps');
}
};