Skip to content

Remove the migration commands unless in debug mode - #27113

Merged
kesselb merged 1 commit into
masterfrom
techdebt/noid/remove-migration-commands-unless-in-debug-mode
May 26, 2021
Merged

kesselb merged 1 commit into
masterfrom
techdebt/noid/remove-migration-commands-unless-in-debug-mode

Conversation

@nickvergessen

@nickvergessen nickvergessen commented May 26, 2021 •

Copy link
Copy Markdown
Member

⚠️ Warning: Do not enable debug just to run those migration:* commands unless you are a developer and know what you are doing. If you try to use migration:execute you are doing something wrong. Apps should only be updated with the occ upgrade command which will also automatically update the database. If that doesn't work open an issue in the app and if the developer needs help please reach out to a server engineer to get help on your issue.

@nickvergessen nickvergessen added 3. to review Waiting for reviews technical debt 🧱 🤔🚀 labels May 26, 2021
@nickvergessen nickvergessen added this to the Nextcloud 22 milestone May 26, 2021
@matiasdelellis

Copy link
Copy Markdown

Hi,
How about generate migrations???

[matias@nube nextcloud]$ sudo -u apache php occ migrations:generate facerecogntion:0860

  There are no commands defined in the "migrations" namespace.

@nickvergessen

nickvergessen commented Nov 24, 2021 •

Copy link
Copy Markdown
Member Author

Replace the colon with a space between app id and version and it's singular migration not migrations

sudo -u apache php occ migration:generate facerecogntion 0860

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants