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

Upgrade for Laravel 11 #8

Merged

Conversation

areichardt-apo
Copy link
Contributor

Due to the removal of DBAL in Laravel 11 (see Laravel 11 Upgrade Guide), I have rebuilt the generation of DBML using the native Laravel 11 methods.

All the methods I used were added in various versions of Laravel 10. Therefore, this is a breaking change and will not work with Laravel versions prior to v10.37. Below is a list of the methods and their corresponding versions:

Method Available Since Version Merge Request
getColumns() v10.30 #48357
getTables() v10.34 #49020
getIndexes() v10.37 #49204
getForeignKeys() v10.37 #49264

I have set the minimum version in the composer.json to v10.37. If you prefer to set the minimum version to v11 only, please let me know.

Due to these breaking changes, this update might require a new release of the package.

For full backwards compatibility, it should be possible to add a switch to use either the native methods or the old DBAL methods. If you prefer this, let me know.

Fixes #6

@aphisitworachorch aphisitworachorch merged commit 037183e into aphisitworachorch:master Jun 15, 2024
@aphisitworachorch
Copy link
Owner

Thanks for your contribution!

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.

Laravel ^11 Support
2 participants