Coder Social home page Coder Social logo

rawroland / migrations Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doctrine/migrations

0.0 2.0 0.0 1.15 MB

Doctrine Database Migrations Library

Home Page: http://www.doctrine-project.org/projects/migrations.html

License: GNU Lesser General Public License v2.1

PHP 99.77% Shell 0.08% Smarty 0.15%

migrations's Introduction

Doctrine Database Migrations

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

Make sure that the Box project is installed:

curl -LSs http://box-project.github.io/box2/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 :-)

migrations's People

Contributors

mikesimonson avatar stof avatar beberlei avatar jwage avatar lcobucci avatar chrisguitarguy avatar localheinz avatar denderello avatar tomasvotruba avatar rjmunro avatar davidhavl avatar aivus avatar syzygymsu avatar safranil avatar asgrim avatar kriswallsmith avatar reenexe avatar neeckeloo avatar lsmith77 avatar simensen avatar aolevanfribourg avatar gsomoza avatar ocramius avatar rcatlin avatar tombevers avatar louiscytc avatar aaa2000 avatar pezia avatar nyholm avatar thanosp avatar

Watchers

Roland Awemo avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.