screwdriver-data-schema 23.9.0 → 23.11.0

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.
@@ -12,8 +12,8 @@ module.exports = {
12
12
  table,
13
13
  'state',
14
14
  {
15
- type: Sequelize.TEXT,
16
- defaultValue: '{}',
15
+ type: Sequelize.STRING(10),
16
+ defaultValue: 'ACTIVE',
17
17
  allowNull: false
18
18
  },
19
19
  { transaction }
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ const prefix = process.env.DATASTORE_SEQUELIZE_PREFIX || '';
4
+ const table = `${prefix}pipelineTemplateVersions`;
5
+
6
+ module.exports = {
7
+ async up(queryInterface, Sequelize) {
8
+ await queryInterface.sequelize.transaction(async transaction => {
9
+ await queryInterface.addColumn(
10
+ table,
11
+ 'workflowGraph',
12
+ {
13
+ type: Sequelize.TEXT,
14
+ defaultValue: '{"nodes": [],"edges":[]}',
15
+ allowNull: false
16
+ },
17
+ { transaction }
18
+ );
19
+ });
20
+ }
21
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-data-schema",
3
- "version": "23.9.0",
3
+ "version": "23.11.0",
4
4
  "description": "Internal Data Schema of Screwdriver",
5
5
  "main": "index.js",
6
6
  "scripts": {