All Projects → erjanmx → laravel-migrate-check

erjanmx / laravel-migrate-check

Licence: MIT license
An artisan command to check for pending migrations with proper exit code

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-migrate-check

artisan-shortcuts
🍰 Register shortcuts to execute multiple artisan commands
Stars: ✭ 56 (+5.66%)
Mutual labels:  laravel-package, artisan, artisan-command
pretty-routes
Display your Laravel routes in the console, but make it pretty. 😎
Stars: ✭ 627 (+1083.02%)
Mutual labels:  artisan, artisan-command
laravel-tinker
Adds a way to write php and run it directly in Laravels' Artisan Tinker.
Stars: ✭ 123 (+132.08%)
Mutual labels:  artisan, artisan-command
artisan-remote
Artisan Remote is a package for Laravel to interact with your Artisan Commands via an HTTP API.
Stars: ✭ 69 (+30.19%)
Mutual labels:  laravel-package, artisan
artisan-cloudflare
Laravel artisan commands for CloudFlare
Stars: ✭ 67 (+26.42%)
Mutual labels:  laravel-package, artisan
Laravel Opcache
Laravel Package for OPcache
Stars: ✭ 1,116 (+2005.66%)
Mutual labels:  laravel-package, artisan
artisan-beans
Easily manage your Beanstalkd job queues right from the Laravel artisan command
Stars: ✭ 41 (-22.64%)
Mutual labels:  laravel-package, artisan-command
Generator
Laravel 5.3+ Scaffold Generator, Support both bootstrap and Semantic UI
Stars: ✭ 327 (+516.98%)
Mutual labels:  laravel-package, artisan
laravel-dacapo
Laravel migration support tool, Always generate the latest migration files on schema.yml
Stars: ✭ 88 (+66.04%)
Mutual labels:  laravel-package, laravel-migration
Blade Migrations Laravel
An intelligent alternative version of Laravel 5/6 Database Migrations - uses raw-sql syntax, transactions, auto-rollback, UP-DOWN-UP testing
Stars: ✭ 25 (-52.83%)
Mutual labels:  laravel-package, artisan
Laravel Sync Migration
Developer tool helps to sync migrations without refreshing the database
Stars: ✭ 89 (+67.92%)
Mutual labels:  migration, laravel-package
laravel-admin
LaravelAdmin是基于PHP开发的基础管理后台系统,做到开箱即用,为新项目开发省去了基础功能开发的步骤;此系统采用前后端分离模式,后端使用Laravel,前端使用vue;主要包含:登录、注销、可视化数据大屏、管理员、角色管理、菜单管理、权限管理、错误日志、登录日志、访问日志、获取服务器CPU使用率、内存使用率等功能。后端主要使用Artisan命令行、Jobs消息队列、 Rules验证规则、Restful API、Composer扩展包、Redis秒杀、Extend自定义扩展类:微信授权、钉钉告警推送、MongoDB、阿里云OSS、七牛云存储、七牛云直播、php-jwt TOKEN、Phpoffice、MySql数据库字典、Elasticsearch等技术。
Stars: ✭ 45 (-15.09%)
Mutual labels:  artisan
madzipper
Wannabe successor of Chumper/Zipper package for Laravel
Stars: ✭ 114 (+115.09%)
Mutual labels:  laravel-package
Scala 3 Migration Guide
The Scala 3 migration guide for everyone.
Stars: ✭ 220 (+315.09%)
Mutual labels:  migration
Fluentmigrator
Fluent migrations framework for .NET
Stars: ✭ 2,636 (+4873.58%)
Mutual labels:  migration
laravel-packages
Useful packages for Laravel projects
Stars: ✭ 22 (-58.49%)
Mutual labels:  laravel-package
migration
TYPO3 Migration Framework for every kind of migration/imports from CLI (e.g. Templavoila to Gridelements, tt_news to news, etc...)
Stars: ✭ 52 (-1.89%)
Mutual labels:  migration
Azure Devops Migration Tools
Azure DevOps Migration Tools allow you to migrate Teams, Backlogs, Tasks, Test Cases, and Plans & Suits from one Project to another in Azure DevOps / TFS both within the same Organisation, and between Organisations.
Stars: ✭ 218 (+311.32%)
Mutual labels:  migration
Migrate
Database migrations. CLI and Golang library.
Stars: ✭ 2,315 (+4267.92%)
Mutual labels:  migration
Ibm Z Zos
The helpful and handy location for finding and sharing z/OS files, which are not included in the product.
Stars: ✭ 198 (+273.58%)
Mutual labels:  migration

An artisan command to check for pending migrations. Exits with non-zero code if there any.

Build Status

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:

composer require erjanmx/laravel-migrate-check

Thanks to Laravel 5.5 package auto-discovery the migrate:check command will be registered

Usage

php artisan migrate:сheck

You can specify database and path to migration file via options just like they are used in php artisan migrate command

ezgif com-gif-maker

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.

$ composer test

Contributing

Please see CONTRIBUTING for details.

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].