-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
SPIKE: Investigate knex-migrator improvements #503
Labels
Comments
acburdine
added a commit
to acburdine/Ghost-CLI
that referenced
this issue
Oct 21, 2017
refs TryGhost#503 - use knex-migrator version installed with Ghost itself - remove global knex-migrator dependency - remove "same node version" check
acburdine
added a commit
to acburdine/Ghost-CLI
that referenced
this issue
Oct 21, 2017
refs TryGhost#503 - use knex-migrator version installed with Ghost itself - remove global knex-migrator dependency - remove "same node version" check
acburdine
added a commit
to acburdine/Ghost-CLI
that referenced
this issue
Oct 21, 2017
refs TryGhost#503 - use knex-migrator version installed with Ghost itself - remove global knex-migrator dependency - remove "same node version" check
acburdine
added a commit
to acburdine/Ghost-CLI
that referenced
this issue
Nov 10, 2017
refs TryGhost#503 - use knex-migrator version installed with Ghost itself - remove global knex-migrator dependency - remove "same node version" check
kirrg001
pushed a commit
that referenced
this issue
Nov 10, 2017
refs #503 - use knex-migrator version installed with Ghost itself - remove global knex-migrator dependency - remove "same node version" check
Closed by #505 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
One of the most frequent problems that I've seen in both Slack and in the various issues created here is with database migrations (surprise surprise), especially where sqlite is concerned, since it requires native bindings that are specific to the individual version of node.
The most often problem that happens is a user installs ghost-cli, then installs a new version of node via nvm or something similar, and then tries to install Ghost. Database migration fails because knex-migrator's sqlite dependency installed in ghost-cli is for an older version of node, causing database migrations to fail.
There's a couple of things that I think can be done to improve this, which need to be investigated
This was actually the case a while back, until we added in the
ghost
system user which necessitated a switch to running it via a subprocess. If we can get it running programmatically, and then run migrations via a subcommand only when we need to run it as theghost
system user, this will likely improve usage/error messages/etc.This should (hopefully) see significant improvements in the database migration flow. By moving the requirement into Ghost (where knex-migrator is already installed) we accomplish several things:
However, this change will need to be verified to ensure that requiring the version installed with Ghost will actually work 😅
The text was updated successfully, but these errors were encountered: