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
Autorun migrations in community edition #5141
Conversation
server/utils/startup.ts
Outdated
Logger.warn( | ||
"Please run `yarn db:migrate` or `yarn db:migrate --env production-ssl-disabled` to run all pending migrations" | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logger.warn( | |
"Please run `yarn db:migrate` or `yarn db:migrate --env production-ssl-disabled` to run all pending migrations" | |
); |
It's ok, I don't need this and this is only a safety measure for cloud now so we can delete.
server/utils/startup.ts
Outdated
} catch (err) { | ||
Logger.warn(chalk.red("Failed to run migrations!")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe removing db:migrate
from Makefile
resolves this. No further action needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it changes it to be honest, I'm easy either way here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first error is logged from within the sequelize
cli 🙈
Catching errors centrally within checkMigrations
now.
Oh, I meant to add we should remove the |
337941e
to
d2ea5d8
Compare
awesome feature!!! Thanks @apoorv-mishra, this has always been a pain for me. In particular in a |
Closes #4680