migrationsmanager Module that manages the migration to a web interface

  1. Requirements
  2. Instalation
  3. Usage
  4. Observations
  5. ScreenShots
  6. Resources

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/Resource Heading/Resource Heading/Resource Heading/Resource Heading/Resource

Resources

1 0
4 followers
447 downloads
Yii Version: Unknown
License: GPL-2.0
Category: Database
Developed by: Vinny.freire
Created on: Jan 15, 2014
Last updated: 10 years ago

Downloads

show all

Related Extensions