Skip to content

Commit

Permalink
Merge pull request #166 from liberu-cms/sweep/Add-nullable-category_i…
Browse files Browse the repository at this point in the history
…d-to-pages-table

Add nullable category_id to pages table
  • Loading branch information
curtisdelicata authored Jul 20, 2024
2 parents e2df4ec + c21c632 commit c10b0b8
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 c10b0b8

Please sign in to comment.