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(),
|
preset: text('preset').notNull(),
|
||||||
until: integer('until'),
|
until: integer('until'),
|
||||||
},
|
},
|
||||||
table => ({
|
table => [uniqueIndex('unique_composite').on(table.memberId, table.preset, table.guildId)],
|
||||||
uniqueComposite: uniqueIndex('unique_composite').on(table.memberId, table.preset, table.guildId),
|
|
||||||
}),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
export type Response = InferSelectModel<typeof responses>
|
export type Response = InferSelectModel<typeof responses>
|
||||||
|
|||||||
Reference in New Issue
Block a user