umbrellio/rollback-missing-migrations 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

umbrellio/rollback-missing-migrations

Composer 安装命令:

composer require umbrellio/rollback-missing-migrations

包简介

Laravel package for rolling back migrations between different releases

README 文档

README

Laravel package for rolling back migrations between different releases

Github Status Coverage Status Latest Stable Version Total Downloads Code Intelligence Status Build Status Code Coverage Scrutinizer Code Quality

Installation

composer

composer require umbrellio/rollback-missing-migrations

Usage

In your new release directory:

php artisan rollback_missing_migrations:rollback <path_to_artisan>

  • <path_to_artisan> - absolute path to artisan command in previous release

Example:

php artisan rollback_missing_migrations:rollback /projects/old_release/your_app/artisan

If your migrations files locate in the custom directory you can use optional parameters:

  • --path - path where your migration files locate in current release
  • --old-path - path where your migration files locate in old release
  • --realpath - this flag indicates, how --path and --old-path formats (absolute or relative) will be recognized

Example with a relative path:

php artisan rollback_missing_migrations:rollback /projects/old_release_app/artisan \
    --old-path=database/old_custom_folder \ 
    --path=database/custom_migration_folder 

Example with an absolute path:

php artisan rollback_missing_migrations:rollback /projects/old_release/your_app/artisan \
    --old-path=/projects/old_release/your_app/database/old_custom_folder \ 
    --path=/new_release/your_app/database/custom_migration_folder \ 
    --realpath

In case if you need rollback new migrations different from origin/master, you can use rollback_new_migrations:rollback

Authors

Created by Art4es & Korben Dallas.

Supported by Umbrellio

统计信息

  • 总下载量: 42.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固