Download the PHP package mike-sorokin/migration without Composer
On this page you can find all versions of the php package mike-sorokin/migration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mike-sorokin/migration
More information about mike-sorokin/migration
Files in mike-sorokin/migration
Package migration
Short Description Migration generator for Phinx
License MIT
Homepage http://github.com/odan/migration
Informations about the package migration
Migrations
Migrations Builder for Phinx.
Currently Phinx (a migration library) cannot generate migrations automatically. Phinx "only" generates a empty class with up and down functions. You still have to write the migration manually.
In reality, you should rarely need to write migrations manually, as the migrations library "should" generate migration classes automatically by comparing your schema mapping information (i.e. what your database should look like) with your actual current database structure.
Generated migration
THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION!
Features
- Framework independent
- DBMS: MySQL
- Database: character set, collation
- Tables: create, update, remove, engine, comment, character set, collation
- Columns: create, update, remove
- Indexes: create, remove
- Foreign keys (experimental): create, remove
Not supported
- MySQL [double] is not supported by phinx https://github.com/robmorgan/phinx/issues/498
- MySQL [year] is not supported by phinx. https://github.com/robmorgan/phinx/pull/704 | https://github.com/robmorgan/phinx/issues/551
- MySQL [bit] is not supported by phinx. https://github.com/robmorgan/phinx/pull/778
- MySQL enum values with special characters: https://github.com/robmorgan/phinx/issues/887
- Migration of contraint names (currently only auto generated): https://github.com/robmorgan/phinx/issues/823
- MySQL comments with special characters.
Installation
Integration
Configuration
- Default configuration file: migrations-config.php
Example:
Name | Type | Default | Description |
---|---|---|---|
dsn | string | Data source name (mysql:host=127.0.0.1;dbname=test) | |
username | string | Database username | |
password | string | Database password | |
options | array | Database options | |
schema_file | string | schema.php | Database schema file (schema.php or schema.json) |
migration_path | string | Output directory for migration files |