定制 adamgajzlerowicz/migrateur 二次开发

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

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

adamgajzlerowicz/migrateur

Composer 安装命令:

composer require adamgajzlerowicz/migrateur

包简介

Console app for running migrations on multiple databases in one go

README 文档

README

#Migrateur

##Purpose: To run migrations on multiple databases simultaneously, using command line.

##Installation: Clone the repository and run composer install. Rename env-example.php to env.php. Put your configuration into the config file.

##Configuration: You will need one primary database, that contains usernames, passwords and database names for all databases you want to run migrations on. Default configuration assumes that your "main" database name is companydatabases that has a databasesettings table, and it will read from dbusername, dbpassword and dbname fields.

You may change the name of your "main" database in the config file. Example table structure will look like this (please notice the company1, company2 and company3 table)

databases

##Usage: In the root folder of the application execute php console.php. This will give you access to three commands: migrate:check, migrate:create and migrate:migrate. The first run of migrate:check command will check if migrations table exist, and create it if it doesn't.

###Daily usage

  • generate new migrations using the migrate:create
  • check status of your migrations with migrate:check
  • run your migrations using migrate:migrate
  • check if the migration run successfully migrate:check

console

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-23