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

Many codebase versions with same DB #9364

Open
jogo-devs opened this issue Oct 15, 2024 · 4 comments
Open

Many codebase versions with same DB #9364

jogo-devs opened this issue Oct 15, 2024 · 4 comments

Comments

@jogo-devs
Copy link

jogo-devs commented Oct 15, 2024

  1. Create a project Keystonejs
  2. Create a DB in PostgreSQL for development mode
  3. Upload or shared your project with other developer (Developer 2) include DB shared
  4. (Developer 2) added a new field in any model and start server
  5. (Developer 1) Start server without new update of (developer 2)
  6. Keystonejs is not able to lift and function without knocking over your partner's work

This happens not only with fields but also with complete lists.

I should be able to run different versions using the same database, it's fine to create this Data Cleanup but it should be some manual script not something automatic, this is very sad to work with other developers because it's a drag, all other Headless CMS options do this without problems, why not Keystonejs?

image

Any Nodejs version

@marekryb
Copy link
Contributor

https://keystonejs.com/docs/guides/database-migration#skipping-dev-db-push
TLDR: keystone dev --no-db-push

I would recommend using migrations instead. You will need them in production anyway.

@jogo-devs
Copy link
Author

However, why should I need this in either prod or dev, when other CMS do it automatically without any problem?

@jogo-devs
Copy link
Author

This also does not solve anything, because it starts giving errors everywhere because the new fields do not exist in the DB.

@rivaslive
Copy link

Same here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants