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 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
No description
1 Reply
jakeleventhal
jakeleventhalOP3mo ago
GitHub
[BUG]:drizzle typescript doesn't see boolean column · Issue #2900 ·...
What version of drizzle-orm are you using? 0.33.0 What version of drizzle-kit are you using? 0.24.2 Describe the Bug i have entity export const db_ranges = pgTable('ranges', { id: serial(&#...
Want results from more Discord servers?
Add your server