Download the PHP package erjanmx/laravel-migrate-check without Composer
On this page you can find all versions of the php package erjanmx/laravel-migrate-check. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download erjanmx/laravel-migrate-check
More information about erjanmx/laravel-migrate-check
Files in erjanmx/laravel-migrate-check
Package laravel-migrate-check
Short Description A command to check for pending migrations. Exits with non-zero code if there are any
License MIT
Homepage https://github.com/erjanmx/laravel-migrate-check
Informations about the package laravel-migrate-check
An artisan command to check for pending migrations. Exits with non-zero code if there any.
Laravel has a migrate:status
command to check status of migrations. But this command mostly for humans. There are situations where one needs to know whether to run migrations when using autodeployment, maybe with switching to maintenance mode.
This package contains a migrate:check
command that exits with non-zero code if there are any migrations to run.
Requirements
This command supports all database drivers that Laravel does.
Installation
You can install the package via composer:
Thanks to Laravel 5.5 package auto-discovery the migrate:check
command will be registered
Usage
You can specify database and path to migration file via options just like they are used in php artisan migrate
command
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
In order for the test to be run you should set up an empty mysql database laravel_migrate_check
. The username should be root
, the required password should be empty.
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-migrate-check with dependencies
illuminate/console Version ^6|^7|^8|^9|^10.0
illuminate/events Version ^6|^7|^8|^9|^10.0