承接 comporu/migrations 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

comporu/migrations

Composer 安装命令:

composer require comporu/migrations

包简介

Database Schema migrations using Doctrine DBAL

README 文档

README

Status

Build Status Dependency Status Scrutinizer Code Quality Code Coverage

Official Documentation

All available documentation can be found here.

The repository containing the documentation is there.

Working with Doctrine Migrations

Using the integration of your framework

Using composer

composer require doctrine/migrations

Downloading the latest phar release

You can download the doctrine migrations phar directly on the release page

Building Your own Phar

Make sure Composer and all necessary dependencies are installed:

curl -s https://getcomposer.org/installer | php
php composer.phar install --dev

Make sure that the Box project is installed:

curl -s http://box-project.org/installer.php | php

Build the PHAR archive:

php box.phar build

The doctrine-migrations.phar archive is built in the build directory.

Creating archive disabled by INI setting

If you receive an error that looks like:

creating archive "build/doctrine-migrations.phar" disabled by INI setting

This can be fixed by setting the following in your php.ini:

; http://php.net/phar.readonly
phar.readonly = Off

Installing Dependencies

To install dependencies run a composer update:

composer update

symfony 2.3 users

Doctrine migration need the doctrine/orm 2.4, you need to update your composer.json to the last version of it for symfony 2.3.

That version is compatible with the doctrine/orm 2.4 and there are very little upgrade needed.

Running the unit tests

To run the tests, you need the sqlite extension for php. On Unix-like systems, install:

  • php5-sqlite

On Windows, enable the extension by uncommenting the following lines in php.ini

extension = php_pdo_sqlite.dll
extension = php_sqlite3.dll
extension_dir = ext

Running the tests from the project root:

./vendor/bin/phpunit

On Windows run phpunit from the full path

php vendor/phpunit/phpunit/phpunit

This appears to be some bug.

Happy testing :-)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-2.1
  • 更新时间: 2016-02-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固