exolnet / laravel-sqlite-fluent-drop-foreign
Add a fluent dropForeign when using sqlite database
Installs: 96 984
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 4
Forks: 3
Open Issues: 1
Requires
- php: ^8.1
- illuminate/database: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
Requires (Dev)
- exolnet/phpcs-config: ^1.0
- orchestra/testbench: ^8.0|^9.0
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.6
README
Make dropForeign fluent when using an SQLite database.
Installation
Require this package with composer:
composer require exolnet/laravel-sqlite-fluent-drop-foreign
If you don't use package auto-discovery, add the service provider to the providers
array in config/app.php
:
Exolnet\SQLiteFluentDropForeign\SQLiteFluentDropForeignServiceProvider::class
Usage
After the package is installed, all the call to dropForeign
on a sqlite
connection will return a new Fluent()
in
order to avoid getting the SQLite doesn't support dropping foreign keys (you would need to re-create the table).
error.
Testing
To run the phpUnit tests, please use:
composer test
Contributing
Please see CONTRIBUTING and CODE OF CONDUCT for details.
Security
If you discover any security related issues, please email security@exolnet.com instead of using the issue tracker.
Credits
License
This code is licensed under the MIT license. Please see the license file for more information.