victor
victor
DTDrizzle Team
Created by victor on 11/13/2024 in #help
Filtering out tables during introspection
I'm using Planetscale, and they automatically create _vrepl tables in my database. Is there a way to filter out tables ending in _vrepl during drizzle-kit pull?
2 replies
DTDrizzle Team
Created by victor on 11/12/2024 in #help
`drizzle-kit pull` v0.28.0 generating faulty schema file
Running drizzle-kit pull generates an incorrect schema file. Ex:
export const inviteCodes = mysqlTable("invite_codes", {
id: varchar({ length: 255 }).notNull(),
remainingUses: int("remaining_uses", , { unsigned: true }).default(1).notNull(),
},
(table) => {
return {
idxInviteCodesRemainingUses: index("idx_invite_codes_remaining_uses").on(table.remainingUses),
}
});
export const inviteCodes = mysqlTable("invite_codes", {
id: varchar({ length: 255 }).notNull(),
remainingUses: int("remaining_uses", , { unsigned: true }).default(1).notNull(),
},
(table) => {
return {
idxInviteCodesRemainingUses: index("idx_invite_codes_remaining_uses").on(table.remainingUses),
}
});
4 replies