Postado em January 14, 2014 por admin



Module that manages the migration to a web interface

Requirements

Yii 1.1 +

Instalation

  • Step - 1° Download and extract file in your modules folder

  • Step - 2° Set Options in you config.php

'modules' => array(
        ...
        'migration'=>array(
           'viewIndex'=>'someView', //optional
           'viewAdmin'=>'someView', //optional
           'viewCreate'=>'someView', //optional
        ),
        ...
),
  • Step - 3° Set your console.php
'components'=>array(
        'db' => array(
            'connectionString' => 'mysql:host={HOSTNAME};dbname={DBNAME}',
            'emulatePrepare' => true,
            'username' => '',
            'password' => '',
            'charset' => 'utf8',
            'tablePrefix' => 'tbl_',
        ),
    ),
    'commandMap'=>array(
        'migrate'=>array(
            'class'=>'system.cli.commands.MigrateCommand',
            'migrationPath'=>'application.migrations',
            'migrationTable'=>'tbl_migration',
            'connectionID'=>'db',
            'templateFile'=>'application.modules.migration.data.template.template',
        ),
    ),
  • Step - 4° Create migrations folder in your protected folder.

Usage

Access from browser tha url - www.yoursite.com.br/migration

Observations

  • The 'exec' function must be released and running on your server

ScreenShots

Heading/ResourceHeading/ResourceHeading/ResourceHeading/ResourceHeading/Resource

Resources

Leave a Comment:

N
@
#
Por favor! insira o codigo acima para validar que você é um ser com alma! rs