定制 frankfoerster/cakephp-migrations 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

frankfoerster/cakephp-migrations

最新稳定版本:v1.0.0

Composer 安装命令:

composer require frankfoerster/cakephp-migrations

包简介

CakePHP Migrations Plugin

README 文档

README

Build Status

Migrations Plugin for CakePHP 2.3+

This migrations plugin is based on the work of "CakeDC/migrations":https://github.com/CakeDC/migrations.

The main goals for the rewrite are:

  • move the migration commands to their own functions "up" and "down"
  • make all migration actions as atomic as possible to ease testing
  • use PHP + CakePHP methods, models in your migrations
  • no need for "before" or "after" callbacks since migrations are method calls
  • remove migration mappings instead use file names with numeric and datetime prefixes + unique migration class names

Requirements

PHP 5.3+ CakePHP 2.3+

Installation

via composer:

composer require frankfoerster/cakephp-migrations:~1.0

In your app/Config/bootstrap.php add:

CakePlugin::load('Migrations', array('bootstrap' => false, 'routes' => false));

Usage via Shell

cd app
Console/cake Migrations.Migration migrate up
Console/cake Migrations.Migration migrate down
Console/cake Migrations.Migration migrate down 1

License

Copyright (c) Frank Förster (frankfoerster)

Licensed under The MIT License Redistributions of files must retain the above copyright notice.

统计信息

  • 总下载量: 144
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-27