screwdriver-data-schema 22.4.2 → 22.4.4

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,14 @@
1
+ /* eslint-disable new-cap */
2
+
3
+ 'use strict';
4
+
5
+ const prefix = process.env.DATASTORE_SEQUELIZE_PREFIX || '';
6
+ const table = `${prefix}pipelines`;
7
+
8
+ module.exports = {
9
+ up: async (queryInterface, Sequelize) => {
10
+ await queryInterface.sequelize.transaction(async transaction => {
11
+ await queryInterface.changeColumn(table, 'scmUri', Sequelize.STRING(500), { transaction });
12
+ });
13
+ }
14
+ };
@@ -33,7 +33,7 @@ const MODEL = {
33
33
 
34
34
  scmUri: Joi.string()
35
35
  .regex(Regex.SCM_URI)
36
- .max(128)
36
+ .max(500)
37
37
  .description('Unique identifier for the application')
38
38
  .example('github.com:123456:master')
39
39
  .example('github.com:123456:master:src/app/component'),
package/models/stage.js CHANGED
@@ -61,7 +61,9 @@ module.exports = {
61
61
  * @property update
62
62
  * @type {Joi}
63
63
  */
64
- update: Joi.object(mutate(MODEL, [], ['jobIds', 'description', 'setup', 'teardown'])).label('Update Stage'),
64
+ update: Joi.object(mutate(MODEL, [], ['jobIds', 'description', 'setup', 'teardown', 'archived'])).label(
65
+ 'Update Stage'
66
+ ),
65
67
 
66
68
  /**
67
69
  * List of fields that determine a unique row
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-data-schema",
3
- "version": "22.4.2",
3
+ "version": "22.4.4",
4
4
  "description": "Internal Data Schema of Screwdriver",
5
5
  "main": "index.js",
6
6
  "scripts": {