Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nullable category_id to pages table #166

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Jul 20, 2024

Purpose

This pull request adds a nullable category_id column to the pages table in the database. This change allows pages to be created without a category, providing more flexibility in the CMS.

Description

The changes made in this pull request are:

  1. Updated the 2023_10_27_000000_create_pages_table.php migration file to make the category_id column nullable and add a foreign key constraint with a set null delete action.

Summary

  • Updated database/migrations/2023_10_27_000000_create_pages_table.php file
  • Made category_id column nullable on the pages table
  • Added foreign key constraint on category_id column with set null delete action

Suggested changes from Sweep Chat by @curtisdelicata. Continue chatting at https://sweep-chat-demo.vercel.app/c/251f702b-1100-4dea-b9fb-a29b3021314c.

@curtisdelicata curtisdelicata merged commit c10b0b8 into main Jul 20, 2024
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant