Skip to content

Add Laravel's withoutForeignKeyConstraints method to Schema Builder - #7684

Merged
limingxinleo merged 3 commits into
hyperf:masterfrom
binaryfire:feature/without-foreign-key-constraints
Jan 25, 2026
Merged

limingxinleo merged 3 commits into
hyperf:masterfrom
binaryfire:feature/without-foreign-key-constraints

Conversation

@binaryfire

Copy link
Copy Markdown
Contributor

Adds Laravel's withoutForeignKeyConstraints convenience method to temporarily disable foreign key constraints while executing a callback.

See: https://github.com/laravel/framework/blob/28ac3ee13988e749983c279c13e2261c230557d6/src/Illuminate/Database/Schema/Builder.php#L631

Adds a convenience method to temporarily disable foreign key constraints
while executing a callback, mirroring the Laravel API.
limingxinleo
limingxinleo previously approved these changes Jan 25, 2026
@limingxinleo
limingxinleo merged commit c59d57f into hyperf:master Jan 25, 2026
77 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.

2 participants