screwdriver-data-schema 23.0.2 → 23.0.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,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const prefix = process.env.DATASTORE_SEQUELIZE_PREFIX || '';
|
|
4
|
+
const table = `${prefix}builds`;
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
// eslint-disable-next-line no-unused-vars
|
|
8
|
+
async up(queryInterface, Sequelize) {
|
|
9
|
+
await queryInterface.sequelize.transaction(async transaction => {
|
|
10
|
+
await queryInterface.removeColumn(table, 'commit', { transaction });
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
};
|
package/models/build.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const Joi = require('joi');
|
|
4
4
|
const mutate = require('../lib/mutate');
|
|
5
|
-
const Scm = require('../core/scm');
|
|
6
5
|
const Regex = require('../config/regex');
|
|
7
6
|
const Job = require('../config/job');
|
|
8
7
|
const Step = require('./step');
|
|
@@ -67,8 +66,6 @@ const MODEL = {
|
|
|
67
66
|
.description('SHA this project was built on')
|
|
68
67
|
.example('ccc49349d3cffbd12ea9e3d41521480b4aa5de5f'),
|
|
69
68
|
|
|
70
|
-
commit: Scm.commit,
|
|
71
|
-
|
|
72
69
|
createTime: Joi.string().isoDate().max(32).description('When this build was created'),
|
|
73
70
|
|
|
74
71
|
startTime: Joi.string().isoDate().description('When this build started on a build machine'),
|