mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-07 10:40:13 +00:00
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:
5
types/sequelize/index.d.ts
vendored
5
types/sequelize/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user