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

[BUG]: Types of updated schemas are not been generated after migration #3877

Open
1 task done
NimaCodez opened this issue Dec 31, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@NimaCodez
Copy link

NimaCodez commented Dec 31, 2024

Report hasn't been filed before.

  • I have verified that the bug I'm about to report hasn't been filed before.

What version of drizzle-orm are you using?

0.36.1

What version of drizzle-kit are you using?

0.28.0

Other packages

No response

Describe the Bug

Hello, I have encountered an issue concerning type generation. When a schema is updated, After updating a schema and running the commands npx drizzle-kit generate and npx drizzle-kit migrate, the newly added fields are not recognized in the code, even after restarting the TypeScript server in VSCode.

Schema:

image

Error:

image

Database have been successfully updated:

image

With this being said, there is no problem with migration using drizzle-kit, but new types are not being generated automatically.

I tried deleting drizzle folder and creating the migrations again, but this also did not work.

@NimaCodez NimaCodez added the bug Something isn't working label Dec 31, 2024
@NimaCodez NimaCodez changed the title [BUG]: Types of updated schemas is not been generated after migration [BUG]: Types of updated schemas are not been generated after migration Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant