Yinnv
DTDrizzle Team
•Created by Yinnv on 3/15/2024 in #help
"drizzle-kit push" repeatedly drops and then recreates the same index
I am using
drizzle-kit push
for modifying db schema to Supabase.
One table, product_tag
, is a join table for the many-to-many relationship between table product
and table tag
. The product_tag
table has two indices to support corresponding searching scenarios.
Below is the table definition for product_tag
table:
Running npx drizzle-kit push:pg
would successfully create the product_tag
table with its two indices.
However, whenever I run the push command from now on, drizzle-kit would always attempt dropping one of the index and recreate it again.
BTW, similar issues could also happen if I create a composite primary key while using drizzle kit with PlanetScale. push
would attempt to drop the composite primary key and recreate it every time.
Is there a workaround for this behavior?5 replies