定制 cekta/migrator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cekta/migrator

Composer 安装命令:

composer require cekta/migrator

包简介

migration tool

README 文档

README

tool to you migration

Advantages

  1. Migration can be located on any directory
  2. Migration file name not required datetime, we use static method id() should return number (like unixtimestamp). Ordering via number
  3. Migration is just common class with any dependencies

Usage

  1. install

    composer require cekta/migrator
    
  2. Register commands in you cli

    \Cekta\Migrator\Command\Migrate::class,
    \Cekta\Migrator\Command\Rollback::class,
    \Cekta\Migrator\Command\MakeMigration::class
  3. Create new migration via IDE or command make:migration

  4. Register migration and dependency in you psr/container, see full example

Migrate

php ./tests/bin/cli.php migrate -i

Rollback

php ./tests/bin/cli.php migration:rollback

Test for develop

make migrate
make rollback

Requirements

  1. docker
  2. make

Contact

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2023-10-10