Skip to content

Commit

Permalink
Updated 1 files
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jul 20, 2024
1 parent e2df4ec commit c21c632
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function up()
$table->string('slug')->unique();
$table->timestamp('published_at')->nullable();
$table->foreignId('user_id')->constrained()->onDelete('cascade');
$table->foreignId('category_id')->constrained()->onDelete('set null');
$table->foreignId('category_id')->nullable()->constrained()->onDelete('set null');
$table->timestamps();
});
}
Expand Down

0 comments on commit c21c632

Please sign in to comment.