Skip to content

Commit be50c57

Browse files
Added cascade on delete to job execution logs
1 parent 1e71258 commit be50c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/database/migrations/2024_11_12_121834_create_job_execution_logs_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function up(): void
1111
{
1212
Schema::create('job_execution_logs', function (Blueprint $table) {
1313
$table->id();
14-
$table->foreignId('job_execution_id')->constrained();
14+
$table->foreignId('job_execution_id')->constrained()->onDelete('cascade');
1515
$table->timestamp('happened_at');
1616
$table->string('level', 9);
1717
$table->text('message');

0 commit comments

Comments
 (0)