petrgrishin/yiimigrate

Migrate сommand supporting modules for Yii 1.1

v0.6 2016-10-20 14:11 UTC

This package is not auto-updated.

Last update: 2024-11-15 22:54:08 UTC


README

Migrate Command supporting modules for Yii 1.1

Current version

0.6

Install

composer.json:

{
  "require": {
    "petrgrishin/yiimigrate": "0.6"
  }
}

config:

<?php
return array(
  'commandMap' => array(
    'migrate' => array(
      'class' => \Command\MigrateCommand::className(),
    ),
  ),
);

Usage

Applies ALL new migrations including migrate all registered application modules:

php yiic migrate up

Applies new migrations only for the selected module:

php yiic migrate up --module=moduleNameFromConfiguration

Creates a new migration for the selected module:

php yiic migrate create migrateName --module=moduleNameFromConfiguration

Applies ALL new migrations and minimize output:

php yiic migrate up --silent=1