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

Vendure CLI removes manually added columns when re-running entity sync #3433

Open
lembarek opened this issue Mar 23, 2025 · 0 comments
Open
Labels
type: bug 🐛 Something isn't working

Comments

@lembarek
Copy link

lembarek commented Mar 23, 2025

Describe the bug
When creating a plugin with the Vendure CLI, adding new columns to an entity works fine initially. However, if I modify the entity (e.g., add a column in the code),

running the CLI to create a service again automatically deletes the columns entity

To Reproduce
Steps to reproduce the behavior:

  1. npx vendure add
  2. Plugin Create a new Vendure plugin
  3. [Plugin: Entity] Add a new entity to a plugin
  4. add new columns to entity
  5. [Plugin: Service] Add a new service to a plugin

Expected behavior
I should see that the service is using the columns that I added, and columns are remaining in the entity

what I am seeing
the entity is returning to it's first state (all columns added are removed)

Environment (please complete the following information):

  • @vendure/core version: 3.1.4
  • Nodejs version 22.14
  • Database (mysql/postgres etc):postgres

Additional context
Add any other context about the problem here.

@lembarek lembarek added the type: bug 🐛 Something isn't working label Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant