Skip to content

Commit

Permalink
Merge pull request #398 from bcgsc/feat/DEVSU-2473-hide-sv-burden-by-…
Browse files Browse the repository at this point in the history
…default

[DEVSU-2473] svBurdenHidden defaults to true
  • Loading branch information
kttkjl authored Nov 19, 2024
2 parents 3e72a3d + b10c22c commit 82089bf
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 82089bf

Please sign in to comment.