Kevin
Kevin
DTDrizzle Team
Created by Kevin on 8/21/2024 in #help
ZOD - how to createUpdateSchema?
I have gone with
const updateMemberSchema = createInsertSchema(member, {
id: z.string().optional(),
});
const updateMemberSchema = createInsertSchema(member, {
id: z.string().optional(),
});
so basically making the primary key optional. Your version is valid as well, but I see it uncomfortable since for every new subset of columns you want to update youd have to create a new type
3 replies
DTDrizzle Team
Created by Kevin on 8/20/2024 in #help
Permission denied for table schema_migrations
Error: permission denied for table schema_migrations at ie (https://local.drizzle.studio/index.js:14109:10948) at async https://local.drizzle.studio/index.js:14109:4889 at async Promise.all (index 1) at async Object.o [as tables] (https://local.drizzle.studio/index.js:13831:39523) at async https://local.drizzle.studio/index.js:14109:362 at async Object.setQueryEngine (https://local.drizzle.studio/index.js:276:22393)
2 replies