Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/DEVSU-2498-fix-jest-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bnguyen-bcgsc authored Nov 20, 2024
2 parents f338ac5 + 82089bf commit e8abcaf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/reports/mutationBurden.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ module.exports = (sequelize, Sq) => {
name: 'svBurdenHidden',
field: 'sv_burden_hidden',
type: Sq.BOOLEAN,
defaultValue: false,
defaultValue: true,
allowNull: false,
jsonSchema: {
description: 'SV Burden Hidden',
Expand Down
22 changes: 22 additions & 0 deletions migrations/20241107001943-DEVSU-2473-default-hidesvburden-true.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const TABLE = 'reports_mutation_burden';

module.exports = {
async up(queryInterface, Sq) {
return queryInterface.sequelize.transaction(async (transaction) => {
await queryInterface.changeColumn(
TABLE,
'sv_burden_hidden',
{
type: Sq.BOOLEAN,
defaultValue: true,
allowNull: false,
},
{transaction},
);
});
},

async down() {
throw new Error('Not Implemented!');
},
};

0 comments on commit e8abcaf

Please sign in to comment.