PHP code example of petrgrishin / yiimigrate

1. Go to this page and download the library: Download petrgrishin/yiimigrate library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

petrgrishin / yiimigrate example snippets



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

php yiic migrate up

php yiic migrate up --module=moduleNameFromConfiguration

php yiic migrate create migrateName --module=moduleNameFromConfiguration

php yiic migrate up --silent=1