Skip to content
New issue

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

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

Already on GitHub? # to your account

index/relation on tagged.tag_id #39

Open
AidasK opened this issue Oct 14, 2020 · 0 comments
Open

index/relation on tagged.tag_id #39

AidasK opened this issue Oct 14, 2020 · 0 comments

Comments

@AidasK
Copy link

AidasK commented Oct 14, 2020

Why there is no index/relation on tagged.tag_id? I think it would be a huge performance and consistency boost

I think we should add $table->foreign('tag_id')->references('id')->on('tags')->onDelete('cascade')->onUpdate('cascade');

AidasK added a commit to AidasK/tags that referenced this issue Oct 14, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant