Merge pull request #33849 from sebastianvera/add-missing-attribute-to-sequelize

Add missing option's concurrently attribute to Sequelize addIndex method
This commit is contained in:
Sheetal Nandi
2019-03-18 12:43:53 -07:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -5025,6 +5025,11 @@ declare namespace sequelize {
* A hash of attributes to limit your index(Filtered Indexes - MSSQL & PostgreSQL only)
*/
where?: AnyWhereOptions;
/**
* Pass CONCURRENT so other operations run while the index is created - PostgresSQL only. Default is false
*/
concurrently?: boolean;
}
/**

View File

@@ -1186,6 +1186,7 @@ queryInterface.addIndex( { schema : 'a', tableName : 'c' }, ['d', 'e'], { loggin
queryInterface.showIndex( { schema : 'schema', tableName : 'table' }, { logging : function() {} } );
queryInterface.addIndex( 'Group', ['from'] );
queryInterface.addIndex( 'Group', ['from'], { indexName: 'group_from' } );
queryInterface.addIndex("Group", ["from"], { concurrently: true });
queryInterface.describeTable( '_Users', { logging : function() {} } );
queryInterface.createTable( 's', { table_id : { type : Sequelize.INTEGER, primaryKey : true, autoIncrement : true } } );
/* NOTE https://github.com/DefinitelyTyped/DefinitelyTyped/pull/5590