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

Feat: add exists in migrator #289

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

akshit-arora
Copy link
Contributor

As Spatie doesn't use down() methods in the migrations, I cam across a problem and had to rollback my migrations which included some settings migration as well. But as down() wasn't available, it threw me an error when the migration tried to re-insert the value in settings

So, I propose providing a function exists() in the migrator to check if the settings exist already. As there's no way to know if the setting exists or not.

@akshit-arora
Copy link
Contributor Author

Hi team,

Any Yay/Nay on this???

@riasvdv riasvdv merged commit 2da8cb5 into spatie:main Sep 20, 2024
14 checks passed
@riasvdv
Copy link
Member

riasvdv commented Sep 20, 2024

Yay :) thanks!

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