承接 fragale/migratool 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

fragale/migratool

最新稳定版本:v1.0.2

Composer 安装命令:

composer require fragale/migratool

包简介

Laravel migrations tools

README 文档

README

Migrations Jet tool is intended to be a very helpful plugin when dealing with migrations of your Laravel project. Many times it becomes a tedious job, especially in development moments when you have to test many things, launching and relaunching tables in the database can be annoying. With these tools the idea is to make the task of the developer a little easier.

Install

composer require fragale/migratool

Use

Migrations list

To see a list of the migrations that have been run in the database, execute:

php artisan migratool:jet --list

You will see a list with the following information:

  • migration #id
  • batch #id
  • Migration file name
  • Class name

Down a migration

For example, to run down migration #id 15, you can run this command:

php artisan migratool:jet --down=15

Find a migration

To find one or more migrations that match an expression, for example user you can run the following command:

php artisan migratool:jet --find=user

if any of the migration filenames match the expression user then you will see a list of all matching migrations.

Purge (mass down)

If you want to do a massive down of one or several migrations you can use the --purge modifier in combination with the --find modifier for example:

php artisan migratool:jet --find=user --purge   

You will see a detail of the migrations that will be purged from the database, if you confirm the action they will be removed and you can migrate them again using php artisan migrate normally

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固