mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(bots/discord/database): use non-deprecated way to create indexes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user