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

Fix Slug Unique Constraint #135

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Fix Slug Unique Constraint #135

merged 1 commit into from
Feb 6, 2024

Conversation

Z3d0X
Copy link
Owner

@Z3d0X Z3d0X commented Feb 6, 2024

Fixes: #134

ref: #133

Copy link

what-the-diff bot commented Feb 6, 2024

PR Summary

  • Revamp Unique Constraints on 'pages' Table
    The introduction of a new migration file eases the alteration of the 'pages' table in the database. Instead of the 'slug' column by itself, the 'slug' paired with 'parent_id' is now uniquely identified, offering more precision when dealing with page data.

  • Service Provider File Enhancement
    The update to the 'FilamentFabricatorServiceProvider.php' file improves the handling of database migrations. The newly implemented 'hasMigrations' method adds more flexibility to the configuration, facilitating the addition of 'create_pages_table' and 'fix_slug_unique_constraint_on_pages_table' migrations for effective database handling.

@Z3d0X Z3d0X merged commit fe74f2c into 2.x Feb 6, 2024
5 checks passed
@Z3d0X Z3d0X deleted the fix-unique-slug branch February 9, 2024 10:45
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.

Slug unique integrity constraint violation
1 participant