mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 13:31:32 +08:00
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
This commit is contained in:
parent
ffc3b43dc5
commit
d4df86e6bc
@ -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)
|
||||
]
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user