NMDSdevopsServiceAdm/SopraSteria-SFC

View on GitHub
backend/migrations/20200901112620-addWorkerFluJab.js

Summary

Maintainability
C
1 day
Test Coverage

Showing 2 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

return Promise.all([
queryInterface.addColumn(table, 'FluJabValue', {
type: Sequelize.DataTypes.ENUM,
allowNull: true,
values: ['Yes', 'No', "Don''t know"]
Severity: Major
Found in backend/migrations/20200901112620-addWorkerFluJab.js and 1 other location - About 1 day to fix
backend/migrations/20201013113128-workerNurseSpecialisms.js on lines 47..69

Similar blocks of code found in 2 locations. Consider refactoring.
Open

down: (queryInterface, Sequelize) => {
return queryInterface.sequelize.transaction(transaction => {
return Promise.all([
queryInterface.removeColumn(table, 'FluJabValue', { transaction }),
queryInterface.removeColumn(table, 'FluJabSavedAt', { transaction }),
Severity: Major
Found in backend/migrations/20200901112620-addWorkerFluJab.js and 1 other location - About 4 hrs to fix
backend/migrations/20220202113918-addCanManageWdfClaims.js on lines 59..69

There are no issues that match your filters.

Category
Status