Skip to content
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

TypeError: argument sql must be a string #10155

Closed
kirrg001 opened this issue Nov 13, 2018 · 1 comment
Closed

TypeError: argument sql must be a string #10155

kirrg001 opened this issue Nov 13, 2018 · 1 comment
Assignees
Labels
needs:info [triage] Blocked on missing information server / core Issues relating to the server or core of Ghost

Comments

@kirrg001
Copy link
Contributor

kirrg001 commented Nov 13, 2018

This only happens with a very very specific situation!

Error

TypeError: argument sql must be a string
    at Object.raw (ghost-workspace2/node_modules/sqlstring/lib/SqlString.js:188:11)
    at Builder.raw (ghost-workspace2/node_modules/mysql/index.js:106:20)
    at Formatter.compileCallback (ghost-workspace2/node_modules/knex-migrator/node

Steps to reproduce

knex-migrator reset
knex-migrator init

-> cancel the process after the tables were created
-> release the migration lock

knex-migrator migrate

Ghost: master
knex-migrator: latest
db: mysql

@kirrg001 kirrg001 added server / core Issues relating to the server or core of Ghost needs:info [triage] Blocked on missing information labels Nov 13, 2018
@kirrg001 kirrg001 self-assigned this Nov 13, 2018
@kirrg001
Copy link
Contributor Author

TryGhost/knex-migrator@75011038fd832c1b2e510a34ef182691e93c2832s should help to avoid this situation.

kirrg001 added a commit that referenced this issue Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs:info [triage] Blocked on missing information server / core Issues relating to the server or core of Ghost
Projects
None yet
Development

No branches or pull requests

1 participant