diff --git a/app/models/reports/mutationBurden.js b/app/models/reports/mutationBurden.js index fc8134107..0a75b94c4 100644 --- a/app/models/reports/mutationBurden.js +++ b/app/models/reports/mutationBurden.js @@ -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', diff --git a/migrations/20241107001943-DEVSU-2473-default-hidesvburden-true.js b/migrations/20241107001943-DEVSU-2473-default-hidesvburden-true.js new file mode 100644 index 000000000..7f5e186c7 --- /dev/null +++ b/migrations/20241107001943-DEVSU-2473-default-hidesvburden-true.js @@ -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!'); + }, +};