New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't try and create migrations folder #6220
Comments
The only time that folder will be automatically created is if you are running a content migrations-spceific command (e.g. So doesn’t seem like something that really needs to be documented; it wouldn’t happen if you were running
Alternatively, your script could wrap the |
Hmm…it seems to be happening for me. My deploy pipeline runs:
I seem to get the error when I deploy a Craft upgrade. |
What version of Craft are you running? |
Looks like I last saw it on |
Whoops, I was testing on 3.5, and forgot we had refactored things a bit there. Just fixed this for the next 3.4 release. |
Craft 3.4.25 is out now with the fix. |
craft\console\controllers\MigrateController
tries to create a migrations folder if it doesn't find one.There is no mention of this in the installation/file permissions docs: https://docs.craftcms.com/v3/installation.html#step-2-set-the-file-permissions
In order to prevent deploy failures as a result of this, I need to create/commit that folder (eg with a
.gitinclude
file in it), even if I don't have any content migrations.At the very least, the docs should state that this permission is necessary. However, I'm not sure what value creating an empty migrations folder has, so maybe it could just not even try?
Here's the error you'll get if write permissions don't exist, which is likely in a CI deployment environment:
The text was updated successfully, but these errors were encountered: