Zingle / laravel5-migrator by njovin

Improved version of Laravel 5's Migrator. Adds better error messaging and support for rollbacks with custom paths
2,314
2
3
Package Data
Maintainer Username: njovin
Maintainer Contact: njovin@zingle.me (Nathan Jovin)
Package Create Date: 2015-12-23
Package Last Update: 2023-04-16
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-12-18 03:06:24
Package Statistics
Total Downloads: 2,314
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 3
Total Forks: 2
Total Open Issues: 5

Zingle Laravel Migrator

Latest Version on Packagist Software License

This overrides and extends Laravel's own migration service provider, migrate, and rollback commands to provide some additional functionality:

  • Adds a 'path' column to the migration tracking table so that the migrate:rollback command works properly even when the --path option is used when running migrations
  • Add improved error display to the migrate command, displaying which migrations were succesful and which migration failed in the event of a failed migration

Install

Via Composer

$ composer require zingle/laravel5-migrator

Run the migration to add the path column to your migrations table:

php artisan migrate --path=vendor/zingle/laravel5-migrator/src/migrations

Add the service provider Zingle\LaravelMigrator\LaravelMigratorServiceProvider to your config/app.php file providers array.

Usage

This overrides and extends the default Laravel migrate and rollback commands, so just use them as normal.

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

License

The MIT License (MIT). Please see License File for more information.