Phinx
v0.10.6
  • Introduction
  • Goals
  • Installation
  • Writing Migrations
  • Database Seeding
  • Commands
  • Configuration
  • Copyright
Phinx
  • Docs »
  • Phinx Documentation
  • Edit on GitHub

Phinx Documentation¶

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

Contents¶

  • Introduction
  • Goals
  • Installation
  • Writing Migrations
    • Creating a New Migration
    • Executing Queries
    • Fetching Rows
    • Inserting Data
    • Working With Tables
    • Working With Columns
    • Working With Indexes
    • Working With Foreign Keys
    • Using the Query Builder
  • Database Seeding
    • Creating a New Seed Class
    • The AbstractSeed Class
    • Inserting Data
    • Truncating Tables
    • Executing Seed Classes
  • Commands
    • The Breakpoint Command
    • The Create Command
    • The Init Command
    • The Migrate Command
    • The Rollback Command
    • The Status Command
    • The Seed Create Command
    • The Seed Run Command
    • Configuration File Parameter
    • Running Phinx in a Web App
    • Using Phinx with PHPUnit
  • Configuration
    • Migration Paths
    • Custom Migration Base
    • Seed Paths
    • Environments
    • Table Prefix and Suffix
    • Socket Connections
    • External Variables
    • Data Source Names
    • Supported Adapters
    • Aliases
    • Version Order
  • Copyright

Indices and tables¶

  • Index
  • Module Index
  • Search Page
Next

© Copyright 2017, CakePHP Revision f28a1c6a.

Built with Sphinx using a theme provided by Read the Docs.