Yii Framework Forum: Yii-Users User Migration - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii-Users User Migration Rate Topic: -----

#1 User is offline   aronbos 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 07-January 13

Posted 10 January 2013 - 04:13 PM

I am sorry, but I will not give up, even after 3 nights. I do not understand the user migration.
I did install Yii 3 times from scratch. I can generate views and controllers in a mysql database.
I configured main.php and console.php as per the readme.md.

But when I run the command ./yiic migrate --migrationPath=user.migrations in the map protected nothing is happening. No message, Nothing.
I am doing something wrong. But what? Who can help me?

My console.php in protected/config is:


<?php

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My console application',

// preloading 'log' component
'preload'=>array('log'),

'modules'=>array(
'user'=>array(a
# encrypting method (php hash function)
'hash' => 'md5',

# send activation email
'sendActivationMail' => true,

# allow access for non-activated users
'loginNotActiv' => false,

# activate user on registration (only sendActivationMail = false)
'activeAfterRegister' => false,

# automatically login from registration
'autoLogin' => true,

# registration path
'registrationUrl' => array('/user/registration'),

# recovery password path
'recoveryUrl' => array('/user/recovery'),

# login form path
'loginUrl' => array('/user/login'),

# page after login
'returnUrl' => array('/user/profile'),

# page after logout
'returnLogoutUrl' => array('/user/login'),
),

// application components
'components'=>array(

// uncomment the following to use a MySQL database
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=database',
'emulatePrepare' => true,
'username' => 'user',
'password' => 'password',
'charset' => 'utf8',
'tablePrefix' => 'tbl_',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
),
),
),
);
0

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 10 January 2013 - 05:26 PM

/* moved from Installation and Setup forum */
"Less noise - more signal"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users