All Projects → cakephp → Phinx

cakephp / Phinx

Licence: mit
PHP Database Migrations for Everyone

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Phinx

Phoenix
Framework agnostic database migrations for PHP.
Stars: ✭ 81 (-98.09%)
Mutual labels:  migrations, database-migrations
sync-db
Utility to synchronize relational database objects across databases.
Stars: ✭ 15 (-99.65%)
Mutual labels:  migrations, database-migrations
Migrate Mongo
A database migration tool for MongoDB in Node
Stars: ✭ 481 (-88.67%)
Mutual labels:  migrations, database-migrations
mongo-migrate
Versioned migrations for MongoDB.
Stars: ✭ 79 (-98.14%)
Mutual labels:  migrations, database-migrations
migrant
Migration management for PostgreSQL/SQLite/MySQL
Stars: ✭ 85 (-98%)
Mutual labels:  migrations, database-migrations
Goose
A database migration tool. Supports SQL migrations and Go functions.
Stars: ✭ 2,112 (-50.25%)
Mutual labels:  migrations, database-migrations
Lol dba
lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.
Stars: ✭ 1,363 (-67.89%)
Mutual labels:  migrations, database-migrations
Dbmate
🚀 A lightweight, framework-agnostic database migration tool.
Stars: ✭ 2,228 (-47.51%)
Mutual labels:  migrations, database-migrations
migrations
Migrations is a database migration tool that uses go's database/sql from the standard library
Stars: ✭ 17 (-99.6%)
Mutual labels:  migrations, database-migrations
Postgres Migrations
🐦 A Stack Overflow-inspired PostgreSQL migration library with strict ordering and immutable migrations
Stars: ✭ 161 (-96.21%)
Mutual labels:  migrations, database-migrations
db-migrator.go
DB migrations. CLI and Golang
Stars: ✭ 13 (-99.69%)
Mutual labels:  migrations, database-migrations
upscheme
Database migrations and schema updates made easy
Stars: ✭ 737 (-82.64%)
Mutual labels:  migrations, database-migrations
migrant lib
Embeddable migration management
Stars: ✭ 22 (-99.48%)
Mutual labels:  migrations, database-migrations
reshape
An easy-to-use, zero-downtime schema migration tool for Postgres
Stars: ✭ 903 (-78.73%)
Mutual labels:  migrations
mysql-to-laravel-migration
Generate Laravel migration files from SQL
Stars: ✭ 18 (-99.58%)
Mutual labels:  migrations
django-unmigrate
Smart reversion of Django migrations based on Git diff
Stars: ✭ 65 (-98.47%)
Mutual labels:  migrations
Erd
A Rails engine for drawing your app's ER diagram
Stars: ✭ 296 (-93.03%)
Mutual labels:  database-migrations
migrations
🏃 Doctrine Migrations for Nette Framework
Stars: ✭ 36 (-99.15%)
Mutual labels:  migrations
framework
A stylish PHP application framework crafted using Slim, Twig, Eloquent and Sentinel designed to get you from clone to production in a matter of minutes.
Stars: ✭ 56 (-98.68%)
Mutual labels:  database-migrations
fulcro-sql
Web server SQL components, and support for running Om Next/Fulcro graph queries against an SQL database.
Stars: ✭ 18 (-99.58%)
Mutual labels:  migrations

Phinx: Simple PHP Database Migrations

Build Status Code Coverage Latest Stable Version Minimum PHP Version Total Downloads

Intro

Phinx makes it ridiculously easy to manage the database migrations for your PHP app. In less than 5 minutes, you can install Phinx and create your first database migration. Phinx is just about migrations without all the bloat of a database ORM system or framework.

Check out book.cakephp.org/phinx (EN, ZH) for the comprehensive documentation.

phinxterm

Features

  • Write database migrations using database agnostic PHP code.
  • Migrate up and down.
  • Migrate on deployment.
  • Seed data after database creation.
  • Get going in less than 5 minutes.
  • Stop worrying about the state of your database.
  • Take advantage of SCM features such as branching.
  • Integrate with any app.

Supported Adapters

Phinx natively supports the following database adapters:

  • MySQL
  • PostgreSQL
  • SQLite
  • Microsoft SQL Server

Install & Run

See version and branch overview for branch and PHP compatibility.

Composer

The fastest way to install Phinx is to add it to your project using Composer (https://getcomposer.org/).

  1. Install Composer:

    curl -sS https://getcomposer.org/installer | php
    
  2. Require Phinx as a dependency using Composer:

    php composer.phar require robmorgan/phinx
    
  3. Install Phinx:

    php composer.phar install
    
  4. Execute Phinx:

    php vendor/bin/phinx
    

As a Phar

You can also use the Box application to build Phinx as a Phar archive (https://box-project.github.io/box2/).

  1. Clone Phinx from GitHub

    git clone https://github.com/cakephp/phinx.git
    cd phinx
    
  2. Install Composer

    curl -s https://getcomposer.org/installer | php
    
  3. Install the Phinx dependencies

    php composer.phar install
    
  4. Install Box:

    curl -LSs https://box-project.github.io/box2/installer.php | php
    
  5. Create a Phar archive

    php box.phar build
    

Documentation

Check out https://book.cakephp.org/phinx for the comprehensive documentation.

Other translations include:

Contributing

Please read the CONTRIBUTING document.

News & Updates

Follow @CakePHP on Twitter to stay up to date.

Limitations

PostgreSQL

Misc

Version History

Please read the release notes.

License

(The MIT license)

Copyright (c) 2017 Rob Morgan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].