drizzle-kit push:mysql drops unchanged primary key & introspect:mysql fails hard
drizzle-kit version: 0.19.3
database: Planetscale
drizzle.config.ts:
Running drizzle-kit push:mysql errored out because it was trying to drop a primary key
As per https://orm.drizzle.team/kit-docs/overview#prototyping-with-db-push i understood that drizzle-kit executes a schema introspection, and then diffs it against my current schema.
So i ran a schema introspection, and the result very wrong
Attached screenshots of the current table structure, obtained by running
database: Planetscale
drizzle.config.ts:
Running drizzle-kit push:mysql errored out because it was trying to drop a primary key
As per https://orm.drizzle.team/kit-docs/overview#prototyping-with-db-push i understood that drizzle-kit executes a schema introspection, and then diffs it against my current schema.
So i ran a schema introspection, and the result very wrong
Attached screenshots of the current table structure, obtained by running
SHOW CREATE TABLE [name] and the schema that drizzle generated

Drizzle ORM | %s