© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
8 replies
MIDI

Switching between single and composite primary keys

I have resolved this by nuking my database and all migrations then recreating, but I ran into this error when changing the nature of primary keys. It also wouldn't let me remove the table by way of migration.
TypeError: Cannot read properties of undefined (reading 'compositePrimaryKeys')
    at .../node_modules/drizzle-kit/bin.cjs:27627:67
TypeError: Cannot read properties of undefined (reading 'compositePrimaryKeys')
    at .../node_modules/drizzle-kit/bin.cjs:27627:67

consider this a bug report, not a cry for help.
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Composite primary key, multiple primary keys
Drizzle TeamDTDrizzle Team / help
2y ago
Composite Primary Key from Foreign Keys
Drizzle TeamDTDrizzle Team / help
3y ago
Does onConflictDoUpdate work with composite primary keys?
Drizzle TeamDTDrizzle Team / help
3y ago
Composite Primary Key?
Drizzle TeamDTDrizzle Team / help
16mo ago