migrate error when install: Cannot declare class m150626_000001_create_audit_entry, because the name is already in use
whisere opened this issue · 3 comments
whisere commented
*** applying bedezign\yii2\audit\migrations\m150626_000001_create_audit_entry
PHP Compile Error 'yii\base\ErrorException' with message 'Cannot declare class m150626_000001_create_audit_entry, because the name is already in use'
Any idea? Thanks!
whisere commented
config.php under console:
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationPath' => null,
'migrationNamespaces' => [
# Other migration namespaces
'bedezign\yii2\audit\migrations',
],
],
whisere commented
I have to remove namespaces in the setting and apply
./yii migrate/up --migrationPath=@bedezign/yii2/audit/migrations