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 ¶
screenshots
please!
Screenshots
Click here to view images and Leave your comment.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.