mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Upgrade sequelize to v6
This commit is contained in:
parent
6c8c15f914
commit
b49f22d8f9
75 changed files with 436 additions and 498 deletions
|
@ -113,7 +113,8 @@ function throwIfNotValid (value: any, validator: (value: any) => boolean, fieldN
|
|||
function buildTrigramSearchIndex (indexName: string, attribute: string) {
|
||||
return {
|
||||
name: indexName,
|
||||
fields: [ Sequelize.literal('lower(immutable_unaccent(' + attribute + '))') as any ],
|
||||
// FIXME: gin_trgm_ops is not taken into account in Sequelize 6, so adding it ourselves in the literal function
|
||||
fields: [ Sequelize.literal('lower(immutable_unaccent(' + attribute + ')) gin_trgm_ops') as any ],
|
||||
using: 'gin',
|
||||
operator: 'gin_trgm_ops'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue