[JENKINS-53964] Drop uuid<->checksum unique constraint from versions table
This commit is contained in:
parent
7da3f7cbcb
commit
9808838473
|
@ -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',
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue