joseki/migration
最新稳定版本:v2.0.0
Composer 安装命令:
composer require joseki/migration
包简介
Joseki/Migration is console database migration tool for your PHP apps.
README 文档
README
Requirements
Joseki/Migration requires PHP 5.4 or higher.
Installation
The best way to install Joseki/Migration is using Composer:
$ composer require joseki/migration
Register compiler extension in your config.neon:
extensions: Migration: Joseki\Migration\DI\MigrationExtension
Example
Add the following to your config.neon:
extensions: Migration: Joseki\Migration\DI\MigrationExtension Migration: migrationDir: # specifies location of migrations migrationPrefix: Migration # migration filename prefix migrationTable: _migration_log # database table for migration sync logFile: # OPTIONAL options: # OPTIONAL collate: 'utf8_unicode_ci' # OPTIONAL (DEFAULT VALUE) cascading: true # OPTIONAL (DEFAULT VALUE)
Running a console command
Create a new empty migration
app/console joseki:migration:create
Sync all existing migrations with your database
app/console joseki:migration:migrate
Create a new migration based on existing LeanMapper entities (registered Repositories)
app/console joseki:migration:from-lm
统计信息
- 总下载量: 804
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-30