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()
});

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