From d4df86e6bcd5d1f681724a5647986d23ec4012bd Mon Sep 17 00:00:00 2001 From: icarus Date: Tue, 14 Oct 2025 01:53:31 +0800 Subject: [PATCH] refactor(db): convert table index definitions from object to array syntax The change improves consistency with the library's preferred style and makes the code more maintainable --- src/main/data/db/schemas/video.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/data/db/schemas/video.ts b/src/main/data/db/schemas/video.ts index 8afcbf2b01..043909143f 100644 --- a/src/main/data/db/schemas/video.ts +++ b/src/main/data/db/schemas/video.ts @@ -19,10 +19,10 @@ export const videoTable = sqliteTable( error: text('error', { mode: 'json' }), ...createUpdateTimestamps }, - (table) => ({ - statusIdx: index('status_idx').on(table.status), - providerIdx: index('provider_idx').on(table.providerId), - typeIdx: index('type_idx').on(table.type), - fileIdIdx: uniqueIndex('file_id_idx').on(table.fileId) - }) + (table) => [ + index('status_idx').on(table.status), + index('provider_idx').on(table.providerId), + index('type_idx').on(table.type), + uniqueIndex('file_id_idx').on(table.fileId) + ] )