Skip to content

[SQLite-kit]: Fix SQLite partial index where inspection #4692

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ColaFanta
Copy link

Fix Drizzle Kit failing to detect SQLite partial index 'WHERE' clauses during remote introspection phase, which caused infinite drop/recreate cycles.

Changed:

  • drizzle-kit/src/serializer/sqliteSerializer.ts: add way to recognize if an index is a partial index, and if so then introspect its "where" part
  • Added partial index test to sqlite "nothing changed in schema" part

Fixes #4688

Fix Drizzle Kit failing to detect SQLite partial index 'WHERE' clauses during remote introspection phase, which caused infinite drop/recreate cycles.
@ColaFanta ColaFanta changed the title [SQLite-kit]: Fix SQLite partial index inspection [SQLite-kit]: Fix SQLite partial index where inspection Jul 9, 2025
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

Successfully merging this pull request may close these issues.

[BUG]: drizzle-kit push on D1 database or sqlite does not respect where part of partial index
1 participant