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

Migration sequence not available #21

Open
mnadeemasghar opened this issue Nov 14, 2024 · 5 comments
Open

Migration sequence not available #21

mnadeemasghar opened this issue Nov 14, 2024 · 5 comments

Comments

@mnadeemasghar
Copy link

I have a problem here while using the the package.

Senario:

If we have two table users and hotels, here hotels is owned by users via owner_id.

Problem:

By running the php artisan migrate:sync it creates hotels table first, which leads to migration error because hotels have foreign key owner_id linked to users

Required Solution:

Somehow, add sequence of the migrations.

@mnadeemasghar mnadeemasghar closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2024
@abdumu
Copy link
Member

abdumu commented Nov 14, 2024 via email

@BSN4
Copy link
Contributor

BSN4 commented Nov 15, 2024

@abdumu this issue related to foreign keys its known issue at least for me ...

@abdumu
Copy link
Member

abdumu commented Nov 16, 2024 via email

@BSN4
Copy link
Contributor

BSN4 commented Nov 16, 2024

@abdumu I can't think of easy fix honestly I think this my fault I thought devs will figure it out

@mnadeemasghar
Copy link
Author

The issue was mistakenly added in wrong repo 🤣 but still relevant here. It's good luck in coding. 😄
reopening it now.

@mnadeemasghar mnadeemasghar reopened this Nov 19, 2024
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

No branches or pull requests

3 participants