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]: drizzle-kit generate not detecting schema changes #2345

Closed
codePassion-dot opened this issue May 18, 2024 · 2 comments
Closed

[BUG]: drizzle-kit generate not detecting schema changes #2345

codePassion-dot opened this issue May 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@codePassion-dot
Copy link

What version of drizzle-orm are you using?

0.30.10

What version of drizzle-kit are you using?

0.21.2

Describe the Bug

create a new nullable column (because I have to migrate data later), then after migrating my data I add the notNull() constraint to my field but when running npx drizzle-kit generate it's saying that there aren't any pending changes

Expected behavior

create a new migration file adding the not null constraint to the existent column

Environment & setup

I'm using sqlite with turso

@codePassion-dot codePassion-dot added the bug Something isn't working label May 18, 2024
@codePassion-dot
Copy link
Author

looking into the issues it seems this is a duplicate of #2336

@AndriiSherman
Copy link
Member

This should be fixed in drizzle-kit@0.21.3. If the issue persists, feel free to reopen it!

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

2 participants