sebastiaanluca / laravel-unbreakable-migrations
Prevent your Laravel database migrations from failing irreversibly by using transactional queries.
Installs: 1 281
Dependents: 1
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.2
- illuminate/database: ^5.6
- illuminate/support: ^5.6
Requires (Dev)
- kint-php/kint: ^2.2
- orchestra/testbench: ^3.6
- phpunit/phpunit: ^7.3
This package is auto-updated.
Last update: 2022-02-01 13:02:26 UTC
README
Prevent your Laravel database migrations from failing by wrapping them in transactions.
Table of contents
- Requirements
- How to install
- How to use
- License
- Change log
- Testing
- Contributing
- Security
- Credits
- About
Requirements
- PHP 7.1 or higher
- Laravel 5.4 or higher
How to install
Laravel 5.5
From Laravel 5.5 and onwards, this package supports auto-discovery. Just add the package to your project using composer and you're good to go!
composer require sebastiaanluca/laravel-unbreakable-migrations
Laravel 5.4
Install the package through Composer by using the following command:
composer require sebastiaanluca/laravel-unbreakable-migrations
Add the service provider to the providers
array in your config/app.php
file:
'providers' => [ SebastiaanLuca\Migrations\Providers\UnbreakableMigrationsServiceProvider::class, ]
How to use
Generating migrations
Unbreakable migrations in detail
migrateUp
migrateDown
$tables
drop
dropAllTables
dropColumn
tableExists
- …
Transactional migration
License
This package operates under the MIT License (MIT). Please see LICENSE for more information.
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
composer install
composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email hello@sebastiaanluca.com instead of using the issue tracker.
Credits
About
My name is Sebastiaan and I'm a freelance Laravel developer specializing in building custom Laravel applications. Check out my portfolio for more information, my blog for the latest tips and tricks, and my other packages to kick-start your next project.
Have a project that could use some guidance? Send me an e-mail at hello@sebastiaanluca.com!