Mango
Mango
DTDrizzle Team
Created by Mango on 2/6/2025 in #help
Drizzle not creating table
okay thats perfect thank you
10 replies
DTDrizzle Team
Created by Mango on 2/6/2025 in #help
Drizzle not creating table
No, I just want to make sure the tables exists, even if i create a new table, i want it to sync
10 replies
DTDrizzle Team
Created by Mango on 2/6/2025 in #help
Drizzle not creating table
Is it possible to check if the tables exist and then push? Or can I just use push on startup everytime to make sure the tables exists?
10 replies
DTDrizzle Team
Created by Mango on 2/6/2025 in #help
Drizzle not creating table
// Guild Config
export const guildConfig = table("guildConfig", {
guildID: t.text("guildID").primaryKey(),
prefix: t.text("prefix").default(defaultData.guildConfig.prefix),
cmdDelete: t.integer("cmdDelete").default(defaultData.guildConfig.cmdDelete),
globalCooldown: t.integer("globalCooldown").default(defaultData.guildConfig.globalCooldown),
});
export const guildConfig = table("guildConfig", {
guildID: t.text("guildID").primaryKey(),
prefix: t.text("prefix").default(defaultData.guildConfig.prefix),
cmdDelete: t.integer("cmdDelete").default(defaultData.guildConfig.cmdDelete),
globalCooldown: t.integer("globalCooldown").default(defaultData.guildConfig.globalCooldown),
});
I am, It works through drizzle-kit push - but I assumed it gets auto created when we start the db.
10 replies