ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Teamโ€ข17mo agoโ€ข
1 reply
jakeleventhal

0.32.0 introduces unmentioned breaking change

export const managerSettings = pgTable('ManagerSettings', {
  defaultSettingsProfileId: uuid('defaultSettingsProfileId')
    .unique()
    .references(() => settingsProfiles.id, {
      onDelete: 'cascade',
      onUpdate: 'cascade'
    }),
  id: uuid('id').primaryKey().defaultRandom(),
  managerId: uuid('managerId')
    .unique()
    .notNull()
    .references(() => managers.id, { onDelete: 'cascade', onUpdate: 'cascade' }),
  themeMode: ThemeModeEnum('themeMode').default('dark').notNull()
});
export const managerSettings = pgTable('ManagerSettings', {
  defaultSettingsProfileId: uuid('defaultSettingsProfileId')
    .unique()
    .references(() => settingsProfiles.id, {
      onDelete: 'cascade',
      onUpdate: 'cascade'
    }),
  id: uuid('id').primaryKey().defaultRandom(),
  managerId: uuid('managerId')
    .unique()
    .notNull()
    .references(() => managers.id, { onDelete: 'cascade', onUpdate: 'cascade' }),
  themeMode: ThemeModeEnum('themeMode').default('dark').notNull()
});

With this table, I would expect
defaultSettingsProfileId
defaultSettingsProfileId
to be part of
$inferInsert
$inferInsert
but for some reason, the only field I can use in update commands is
managerId
managerId
. All others result in type errors. Prior to 0.32.0, I was able to set
defaultSettingsProfileId
defaultSettingsProfileId
Screenshot_2024-10-08_at_4.55.45_PM.png
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

Type inference breaking in drizzle-orm 0.32.0 ?
Drizzle TeamDTDrizzle Team / help
2y ago
Suggestion: Add warning when adding breaking changes.
Drizzle TeamDTDrizzle Team / help
3y ago
Enum breaking schema
Drizzle TeamDTDrizzle Team / help
2y ago
Code breaking in jest environment
Drizzle TeamDTDrizzle Team / help
12mo ago