migrationsmanager

Module that manages the migration to a web interface
4 followers

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
           'template'=>'application.modules.migration.data.template', //optional
           'phpPath'=>'C:\\wamp\\bin\\php\\php5.4.16\\php.exe',//In my case
        ),
        ...
),

IMPORTANT- the 'phpPath' attribute is for servers that do not have php as environment variable.

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

Total 2 comments

#16201 report it
Vinny.freire at 2014/01/27 01:25pm
Screenshots

Click here to view images and Leave your comment.

#16132 report it
yan at 2014/01/22 09:15am
screenshots

please!

Leave a comment

Please to leave your comment.

Create extension