diff --git a/docs/cli.md b/docs/cli.md index 8638e3c82..ec92144bb 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, } 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, }