25th/migrations 问题修复 & 功能扩展

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

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

25th/migrations

Composer 安装命令:

composer require 25th/migrations

包简介

README 文档

README

Build Status

This module allows to upgrade the database after source code changes by applying sql files in the database.

Installation

Just install via composer

TODO

If you want an executable file somewhere in your project structure and not somewhere in vendors, composer will offer you the possibility to define a bin-dir where all executabls are symlinked.

{
    "config": {
        "bin-dir": "scripts"
    }
}

Configuration

Migrations is configured via ZF1's application.ini which is loaded from /application/configs/application.ini.

Currently only Doctrine's DBAL configuration is used.

During runtime a APPLICATION_ENV must be set!

Usage

migrations status

migrations status will show you a list of all unapplied changes.

migrations apply

migrations apply next will apply the next changeset.

migrations apply all will apply all missing changesets.

migrations apply <sql-file-name> will apply the changeset .

With the --only-mark option you can apply the migration without executing it.

Development

Running Tests:

# Unit tests
vendor/bin/phpunit tests/unit/

# Component tests
docker-compose up -d
vendor/bin/phpunit tests/component/

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-03-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固