承接 sachoo/phalcon-console-migration 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sachoo/phalcon-console-migration

最新稳定版本:2.0.1

Composer 安装命令:

composer require sachoo/phalcon-console-migration

包简介

Based on sachoo/phalcon-console, this component handle databases migrations (up, down, diff, status, run)

README 文档

README

Based on sachoo/phalcon-console, this component handle databases migrations (up, down, diff, status, run) based on your models metadatas.

Requirements

  • PHP >= 5.6
  • Phalcon >= 3.0.0

Installing

Follow the install instructions here sachoo/phalcon-console

Usage

Migrations commands generate scripts with datetime versioning. In your configuration file, you must to define a config->application->migrationDir value. Then you have to manage your model metadatas with sachoo/phalcon-model-annotations

To know more about the power of Migrations, execute:

 ./console mig

This command should display something similar to:

Help:
  Migration Commands

Usage: Generate a Migration
  mig gen

Usage: Run all available Migrations
  mig run

Usage: Run just one migration up
  mig up

Usage: Run just one migration down
  mig down

Usage: Generate migration file with Diff beetween Models and your Databases
  mig diff

Usage: Show migration status
  mig status

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-16