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

Error when trying to load a fixture when the table primary key is not a serial type #1150

Open
Ghost-str opened this issue Jan 6, 2025 · 4 comments
Labels

Comments

@Ghost-str
Copy link

Description

Error when trying to load a fixture when the table primary key is not a serial type

To Reproduce

Add table with uuid primary key

Expected Behavior

No error when loading fixtures

Environment:

dev, test

Additional Context

introduced in #1014

It seems to me that before this command need to check the primary key type for each database

@Ghost-str
Copy link
Author

I also think that need to add a test case when the table does not have a primary key

@kaplanelad kaplanelad added the seed label Jan 7, 2025
@kaplanelad
Copy link
Contributor

@Ghost-str
Can you provide the migration and the seed yaml file?

@Ghost-str
Copy link
Author

@Ghost-str
Copy link
Author

I also encountered the following problems:

  • Before running the entity generator, need to check the connection to the database; without a database, not all files are generated
  • When generating code, it would be good to convert the project name from "book-store" to "book_store" or report about incorrect project name.
  • Loco code starter dont use latest loco package version

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

No branches or pull requests

2 participants