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
When using Knex, it does not create table #2136
Comments
Same here, but on Windows. If I manually create the table and rows, it kind of works but I'm clearly not setting something up in the ID field correctly because newly-created items have blank IDs. Everything works just fine when using MongoDB. I've been working on a very large and complicated project for about a year now using MongoDB and Keystone 4. For a smaller personal project I wanted to try Keystone 5 and my web host offers Postgres so I was hoping to use it rather than pay for MongoDB hosting somewhere separate from my web host. Between this issue and what seems to be the need to manually add rows and tables anytime the data model changes, Postgres may be more trouble than it's worth. |
It looks like there hasn't been any activity here in over 6 months. Sorry about that! We've flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. :) |
I am having the same issues. No tables are created on initialization. It's very frustrating. |
This is expected behaviour. You'll need to run |
Bug report
Describe the bug
When using Knex, it does not create table.
To Reproduce
yarn create keystone-app todo-app
project name: todo
template: Todo
adaptor: knex
createdb todo
Expected behaviour
When I go to check if the table exists in pgAdmin, it does not.
Screenshots
System information
The text was updated successfully, but these errors were encountered: