izarmx/voyager-migration-generator 问题修复 & 功能扩展

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

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

izarmx/voyager-migration-generator

Composer 安装命令:

composer require izarmx/voyager-migration-generator

包简介

This package autogenerates migrations out of database schema changes done through Voyager

README 文档

README

This package listens for database schema changes done through Laravel Voyager and generates migrations for them.

Based on Generate Migrations Voyager Hook by @mohammed-io

Original author's comment:

I like using Laravel Voyager, it really handles all the headache of creating the CRUD UI of the application, because I use Voyager for most of my small projects, there's one thing bothers me when it comes to using it, database!

Because it updates the database in place, so there's no migration created, this is an issue if you made change and want to deploy it to your remote host, that's why I tried to make this little hook to handle the automatic creation of migrations.

Since this version is no longer a hook, it's installed as any other package:

composer require izarmx/voyager-migration-generator --dev

The reasoning behind not using it as a hook is that larapack.io don't seem to allow creating new hooks with the new composer's package name convention: <vendor>/<package-name>, thus, some hooks are no longer compatible with Composer v2.0. And personally, I'm not sure what's the advantage to having to manage hooks with multiple commands like install and enable/disable.

Todo

[ ] Write tests

Limitations

  • No down() migration, only up()
  • The file and class names are not very detailed.
  • It generates a migration even if no actual changes happened to the table.
  • You can't change the vendor (means if mysql should stay mysql) because there's vendor specific data types.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固