fix(bots/discord/database): use non-deprecated way to create indexes

This commit is contained in:
PalmDevs
2025-07-12 19:45:46 +07:00
parent f3c199d573
commit 8cc2377cbf

View File

@@ -20,9 +20,7 @@ export const appliedPresets = sqliteTable(
preset: text('preset').notNull(),
until: integer('until'),
},
table => ({
uniqueComposite: uniqueIndex('unique_composite').on(table.memberId, table.preset, table.guildId),
}),
table => [uniqueIndex('unique_composite').on(table.memberId, table.preset, table.guildId)],
)
export type Response = InferSelectModel<typeof responses>