定制 syu93/db-versioning 二次开发

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

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

syu93/db-versioning

Composer 安装命令:

composer require syu93/db-versioning

包简介

DBVersioning is a database versioning tool created to help teams working with local database.

README 文档

README

    ____  ____ _    __               _             _            
   / __ \/ __ ) |  / /__  __________(_)___  ____  (_)___  ____ _
  / / / / __  | | / / _ \/ ___/ ___/ / __ \/ __ \/ / __ \/ __ `/
 / /_/ / /_/ /| |/ /  __/ /  (__  ) / /_/ / / / / / / / / /_/ / 
/_____/_____/ |___/\___/_/  /____/_/\____/_/ /_/_/_/ /_/\__, /  
                                                       /____/   version 0.0.1

DBVersioning - PHP-based database versioning

Install:

Clone DBVersioning from github:

    $ git clone https://github.com/syu93/DBVersioning.git

Note: To install it globaly, copy the bin/dbversioning and dbversioning.php scripts in your bin folder: /usr/local/bin.

Then it done. Juste run:

    $ php dbversioning.php [commands] [options]

Or if you have installed it globaly:

    $ dbversioning [commands] [options]

NOTE: Add the dbv/data/meta folder to you ..gitignoire or any source management system. And the /dbv/data/dbv.json as well.

Usage:

We assume you're using one of the two install methods. So we omit the tool name before the command.Refer above for more explanation.

    $ command [options] [arguments]
    $ command -H for help.

For exemple:

    $ dbversioning init -H

Will print:

Usage:
    init [options]
Options:
  -d    Database name.
  -h    Server host name. Default: localhost.
  -u    Database user. Default: root.
  -p    Database password.
  -t    [optional] The table to export.
  -T    [optional] The list of table to export
  --path  [optional] The dbv folder path. Default: dbv
Help:
    The init command initialize DBVersioning by reading and saving database records in the 'dbv/data/records/table_name.json'.

Options:

    -v          Display the application version.

    -h, --help  Display this help message.

The following commands are currently supported:

    init    Initialize DBVersioning by reading and saving records.

    update      Update saved records

    diff    Create the revision file to update the database

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固