I have the project setup using docker. When I generate new migration by executing docker-compose exec app console/yii migrate it creates migration file in common/migrations/db folder, but it is owned by root, however my PHPStorm is running with non root user and I can't modify the migration file anymore.
The solution is of course run chown command everytime when you generate new migration, but it's not good solution.
I have the project setup using docker. When I generate new migration by executing
docker-compose exec app console/yii migrate
it creates migration file incommon/migrations/db
folder, but it is owned by root, however my PHPStorm is running with non root user and I can't modify the migration file anymore.The solution is of course run
chown
command everytime when you generate new migration, but it's not good solution.Do you have any idea?