[JENKINS-53964] Drop uuid<->checksum unique constraint from versions table

This commit is contained in:
Baptiste Mathus 2018-10-09 20:54:13 +02:00
parent 7da3f7cbcb
commit 9808838473
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.removeConstraint('versions', 'uuid_checksum_uniq');
},
down: (queryInterface, Sequelize) => {
return queryInterface.addConstraint('versions',
['uuid', 'checksum'],
{
type: 'UNIQUE',
name: 'uuid_checksum_uniq',
}
);
}
};