screwdriver-data-schema 25.11.1 → 25.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ /* eslint-disable new-cap */
2
+
3
+ 'use strict';
4
+
5
+ const prefix = process.env.DATASTORE_SEQUELIZE_PREFIX || '';
6
+ const table = `${prefix}events`;
7
+
8
+ module.exports = {
9
+ // eslint-disable-next-line no-unused-vars
10
+ up: async (queryInterface, Sequelize) => {
11
+ await queryInterface.sequelize.transaction(async transaction => {
12
+ await queryInterface.removeIndex(table, `${table}_pipeline_id_create_time`, {
13
+ transaction
14
+ });
15
+ });
16
+ }
17
+ };
package/models/event.js CHANGED
@@ -183,7 +183,7 @@ module.exports = {
183
183
  * @property rangeKeys
184
184
  * @type {Array}
185
185
  */
186
- rangeKeys: ['createTime', 'pipelineId', 'type', 'groupEventId', 'parentEventId', 'pipelineId'],
186
+ rangeKeys: ['createTime', 'pipelineId', 'type', 'groupEventId', 'parentEventId'],
187
187
 
188
188
  /**
189
189
  * Tablename to be used in the datastore
@@ -204,7 +204,6 @@ module.exports = {
204
204
  { fields: ['pipelineId'] },
205
205
  { fields: ['type'] },
206
206
  { fields: ['groupEventId'] },
207
- { fields: ['parentEventId'] },
208
- { fields: ['pipelineId', 'createTime'] }
207
+ { fields: ['parentEventId'] }
209
208
  ]
210
209
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-data-schema",
3
- "version": "25.11.1",
3
+ "version": "25.11.3",
4
4
  "description": "Internal Data Schema of Screwdriver",
5
5
  "main": "index.js",
6
6
  "scripts": {