bedezign / yii2-audit

Yii2 Audit records and displays web/cli requests, database changes, php/js errors and associated data.
https://bedezign.github.io/yii2-audit/
Other
193 stars 111 forks source link

migrate error when install: Cannot declare class m150626_000001_create_audit_entry, because the name is already in use #275

Closed whisere closed 5 months ago

whisere commented 4 years ago

*** 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 4 years ago

config.php under console: 'controllerMap' => [ 'migrate' => [ 'class' => 'yii\console\controllers\MigrateController', 'migrationPath' => null, 'migrationNamespaces' => [

Other migration namespaces

            'bedezign\yii2\audit\migrations',
        ],
    ],
whisere commented 4 years ago

I have to remove namespaces in the setting and apply ./yii migrate/up --migrationPath=@bedezign/yii2/audit/migrations

schmunk42 commented 5 months ago

Fixed in 1.2.6, see https://github.com/bedezign/yii2-audit?tab=readme-ov-file#yii2-audit-12x