From a493f0c9e682b4aef8badbbb17567ab9af526304 Mon Sep 17 00:00:00 2001 From: Denis LE Date: Tue, 1 Aug 2023 11:13:55 +0200 Subject: [PATCH 1/2] docs(migrations): fix addIndex fields should be array --- versioned_docs/version-6.x.x/other-topics/migrations.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/versioned_docs/version-6.x.x/other-topics/migrations.md b/versioned_docs/version-6.x.x/other-topics/migrations.md index f5163d53a..00ee6d744 100644 --- a/versioned_docs/version-6.x.x/other-topics/migrations.md +++ b/versioned_docs/version-6.x.x/other-topics/migrations.md @@ -306,9 +306,8 @@ module.exports = { ); await queryInterface.addIndex( 'Person', - 'petName', + ['petName'], { - fields: 'petName', unique: true, transaction, } From 04a3bf394a6276756a8fb9e9dd8a6a18570afb4c Mon Sep 17 00:00:00 2001 From: Denis LE Date: Tue, 1 Aug 2023 11:20:35 +0200 Subject: [PATCH 2/2] docs(cli): fix addIndex fields should be an array --- docs/cli.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index 70989656a..fa7f24563 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -240,9 +240,8 @@ module.exports = { ); await queryInterface.addIndex( 'Person', - 'petName', + ['petName'], { - fields: 'petName', unique: true, transaction, }