sebastiaanluca/laravel-unbreakable-migrations

This package is abandoned and no longer maintained. No replacement package was suggested.

Prevent your Laravel database migrations from failing irreversibly by using transactional queries.

0.3.0 2018-09-04 16:56 UTC

This package is auto-updated.

Last update: 2022-02-01 13:02:26 UTC


README

Latest stable release Software license Build status Total downloads

Read my blog View my other packages and projects Follow @sebastiaanluca on Twitter Share this package on Twitter

Prevent your Laravel database migrations from failing by wrapping them in transactions.

Table of contents

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!