Skip to content

PHP database migration

alwex edited this page May 30, 2012 · 17 revisions

Table of contents

  1. Introduction
  2. Installation
    2.1. Project initialisation
    2.2. Customizing configuration
  3. Generating a migration script
  4. Migrating UP and DOWN
    4.1 Migrating UP
    4.2 Migrating DOWN
    4.3 Force a unique migration
    4.4 Make migrations transactional
  5. Migrations status
  6. Dealing with environements

1. Introduction

PHP database migration is a small utility tool inspired by two great migration tool called MyBatis and Rails rake that allow to easyly maintain database schema without any effort.

2. Installation

2.1. Project initialisation

2.2. Customizing configuration

3. Generating a migration script

4. Migrating UP and DOWN

4.1 Migrating UP

4.2 Migrating DOWN

4.3 Force a unique migration

4.4 Make migrations transactional

5. Migrations status

6. Dealing with environements

Clone this wiki locally