bizley / yii2-migration

Yii 2 Migration Creator And Updater
Apache License 2.0
291 stars 36 forks source link

Bug in beforeAction #64

Closed aiwbend closed 5 years ago

aiwbend commented 5 years ago

Expects parameter 1 to be string, array given

https://github.com/bizley/yii2-migration/blob/49ab8cd79636ce2bfa4d07be0da6452d5e86b81d/src/controllers/MigrationController.php#L305

bizley commented 5 years ago

What is your version of yii2-migration? This should be already fixed in 3.5.0

aiwbend commented 5 years ago

$version = '3.6.0' Now there is always converted to an array.

bizley commented 5 years ago

Could you paste here the configuration you are using? Or full command if there is no special config.

aiwbend commented 5 years ago

console/yii migration/create migration --migrationNamespace="modules\\logging\\repository\\migrations"

aiwbend commented 5 years ago

Look at the latest version of the code, the reason is clearly visible there.)

bizley commented 5 years ago

Fixed in 3.6.1 / 2.9.1.

Thank you!

aiwbend commented 5 years ago

Thanks you. Nice library, use it in gii)