2017 © Pedro Peláez
 

library phigrate

Migrations SQL for PHP 5.3

image

azema/phigrate

Migrations SQL for PHP 5.3

  • Thursday, April 10, 2014
  • by Azema
  • Repository
  • 2 Watchers
  • 7 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 90 Forks
  • 8 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

Introduction

Phigrate is a framework written in PHP5 for generating and managing a set of "database migrations". Database migrations are declarative files which represent the state of a DB (its tables, columns, indexes, etc) at a particular state of time. By using database migrations, multiple developers can work on the same application and be guaranteed that the application is in a consistent state across all remote developer machines., (*2)

The idea of the framework was borrowed from the migration system built into Ruby on Rails. Any one who is familiar with Migrations in RoR will be immediately at home., (*3)

The project is built on a continuous integration Jenkins (http://travis-ci.org/Azema/Phigrate), (*4)

The documentation (https://github.com/Azema/Phigrate/wiki), (*5)

Features

  • Portability: the migration files, which describe the tables, columns, indexes, etc to be created are themselves written in pure PHP5 which is then translated to the appropriate SQL at run-time. This allows one to transparently support any RDBMS with a single set of migration files (assuming there is an adapter for it, see below)., (*6)

  • Extensibility: the framework is written with extensibility in mind and it is very modular. Support for new RDMBSs should be as easy as creating the appropriate adapter and implementing a single interface., (*7)

  • "rake" like support for basic tasks. The framework has a concept of "tasks" (in fact the primary focus of the framework, migrations, is just a plain task) which are just basic PHP5 classes which implement an interface. Tasks can be freely written and as long as they adhere to a specific naming convention and implement a specific interface, the framework will automatically register them and allow them to be executed., (*8)

  • The ability to go UP or DOWN to a specific migration state., (*9)

  • Code generator for generating skeleton migration files., (*10)

  • Out-of-the-box support for basic tasks like initializing the DB schema info table (db:setup), asking for the current version (db:version) and dumping the current schema (db:schema)., (*11)

Limitations

  • PHP 5.3 or above is a hard requirement. The framework employes extensive use of object-oriented features of PHP5. There are no plans to make the framework backwards compatible., (*12)

  • As of August 2007, only the MySQL RDBMS is supported., (*13)

  • As of september 2012, PHP 5.2 is not supported, (*14)

The Versions

10/04 2014

dev-master

9999999-dev https://github.com/Azema/Phigrate

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo *

 

sql migration pdo mysql

10/04 2014

dev-release-v1.3

dev-release-v1.3 https://github.com/Azema/Phigrate

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo *

 

sql migration pdo mysql

10/04 2014

v1.3.0

1.3.0.0 https://github.com/Azema/Phigrate

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo *

 

sql migration pdo mysql

29/03 2013

dev-setup_with_database

dev-setup_with_database http://blog.phigrate.org

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo *

 

sql migration pdo mysql

18/02 2013

dev-release-v1.2

dev-release-v1.2 http://blog.phigrate.org

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo *

 

sql migration pdo mysql

14/02 2013

v1.2.0

1.2.0.0 http://blog.phigrate.org

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo *

 

sql migration pdo mysql

17/12 2012

dev-release-v1.1

dev-release-v1.1 https://github.com/Azema/Phigrate/

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo *

 

sql migration pdo mysql

17/12 2012

v1.1.2

1.1.2.0 https://github.com/Azema/Phigrate/

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo *

 

sql migration pdo mysql

13/12 2012

v1.1.1

1.1.1.0 https://github.com/Azema/Phigrate/

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo_mysql *

 

sql migration pdo mysql

25/11 2012

v0.9.5

0.9.5.0 https://github.com/Azema/Phigrate/

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo_mysql *

 

sql migration pdo mysql

25/11 2012

v1.1.0

1.1.0.0 https://github.com/Azema/Phigrate/

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo_mysql *

 

sql migration pdo mysql

25/11 2012

dev-foreignKey

dev-foreignKey https://github.com/Azema/Phigrate/

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo_mysql *

 

sql migration pdo mysql

30/09 2012

v0.9.4a3

0.9.4.0-alpha3 https://github.com/Azema/Phigrate/

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo_mysql *

 

sql migration pdo mysql

11/09 2012

v0.9.4a2

0.9.4.0-alpha2 https://github.com/Azema/Phigrate/

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo_mysql *

 

sql migration pdo mysql

09/09 2012

v0.9.4-alpha

0.9.4.0-alpha https://github.com/Azema/Phigrate/

Migrations SQL for PHP 5.3

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2
  • ext-pdo_mysql *

 

sql migration pdo mysql