“Could not open input file” on running migrations in yii2

Today while working with one of my colleague I stumbled upon a weird issue. When running migrations we were running into this PHP error saying it was unable to open input files. After spending some time online, we found out that we were actually missing yii.sh file in our project, which for some reason is added to .gitignore by default.

After adding that file we were able to run migrations again.

Hope it helped!

alexey

alexey

Application developer, movie buff, occasional reader and a huge Manchester United fan.
alexey