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

Add DatabaseSizeCheck #151

Merged
merged 21 commits into from
Jan 25, 2023
Merged

Add DatabaseSizeCheck #151

merged 21 commits into from
Jan 25, 2023

Conversation

ralphjsmit
Copy link
Contributor

This PR adds a new check called DatabaseSizeCheck. This check does what the name says – it fails when the size of the database reaches a certain threshold.

I decided to use GB as the order of magnitude instead of MB, since databases that are <1 GB usually aren't causing that much problems.

Thanks!

@freekmurze
Copy link
Member

Very nice work, thank you!

However the tests are failing? Could you take a look at that?
Could you also rebase with main so the tests run against Laravel 10 as well?

@ralphjsmit
Copy link
Contributor Author

Thanks! Updated to use ->selectOne() instead of ->scalar(), seems like scalar isn't available on L8.

@ralphjsmit
Copy link
Contributor Author

Rebased on main, could you approve the tests run?

@ralphjsmit
Copy link
Contributor Author

OK, could you give it another try? 🙂

@freekmurze
Copy link
Member

We're all good, thanks again for this excellent PR!

@freekmurze freekmurze merged commit f6707fa into spatie:main Jan 25, 2023
@ralphjsmit
Copy link
Contributor Author

ralphjsmit commented Jan 25, 2023

Thanks ❤️ You and the Spatie team thank you for the great package!

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.

4 participants