Closed JoshStwrt closed 4 months ago
Same problem happening to me as well, in the Discord they informed me they are aware and it is being fixed.
Me too. Except with drizzle-kit generate
. Tracking this.
Same for me. Good to know that it's being fixed!
The same issue is facing. drizzle-kit generate is not showing these changes. I run drizzle-kit drop and again run the generate command. but after running the migrate command it is showing table already exists and skips.. altered change is not tracking.
fixed locally, will include in one if next releases
should be fixed in drizzle-kit@0.21.2
. Feel free to reopen if it is not fixed for you!
It's working for me @AndriiSherman :)
I'm using Turso in local development and attempting to use
drizzle-kit push
but it's not correctly detecting schema changes. For example, it won't simply detect a new column being added to a table. It does seem to detect changes to indexes and constraints. See an example below:Current Schema (already pushed to the database)
Proposed Schema Change (without unique constraint)
Running
drizzle-kit push
on the above returns:But, running
drizzle-kit push
on a change such as the following:Proposed Schema Change (with unique constraint)
Prompts the following, noting the creation of a new unique index but not the new column:
drizzle.config.ts
Versions