Skip to content

Commit

Permalink
Merge branch 'main' into fix/1498-address-in-deletion-report
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanc19 committed Sep 9, 2024
2 parents f0a58e4 + 982eac6 commit 1ba3d46
Show file tree
Hide file tree
Showing 46 changed files with 10,896 additions and 32,133 deletions.
13 changes: 11 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@ updates:
schedule:
interval: weekly
day: friday
open-pull-requests-limit: 10
target-branch: test
open-pull-requests-limit: 5
target-branch: main
groups:
patch-security-updates:
applies-to: security-updates
update-types:
- "patch"
patch-version-updates:
applies-to: version-updates
update-types:
- "patch"
ignore:
- dependency-name: cheerio
versions:
Expand Down
78 changes: 78 additions & 0 deletions backend/migrations/20240827102746-addLevel2CareCertificate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
'use strict';

const table = { tableName: 'Worker', schema: 'cqc' };

module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.sequelize.transaction((transaction) => {
return Promise.all([
queryInterface.addColumn(
table,
'Level2CareCertificateValue',
{
type: Sequelize.DataTypes.TEXT,
allowNull: true,
},
{ transaction },
),
queryInterface.addColumn(
table,
'Level2CareCertificateYear',
{
type: Sequelize.DataTypes.INTEGER,
allowNull: true,
},
{ transaction },
),
queryInterface.addColumn(
table,
'Level2CareCertificateSavedAt',
{
type: Sequelize.DataTypes.DATE,
allowNull: true,
},
{ transaction },
),
queryInterface.addColumn(
table,
'Level2CareCertificateChangedAt',
{
type: Sequelize.DataTypes.DATE,
allowNull: true,
},
{ transaction },
),
queryInterface.addColumn(
table,
'Level2CareCertificateSavedBy',
{
type: Sequelize.DataTypes.TEXT,
allowNull: true,
},
{ transaction },
),
queryInterface.addColumn(
table,
'Level2CareCertificateChangedBy',
{
type: Sequelize.DataTypes.TEXT,
allowNull: true,
},
{ transaction },
),
]);
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.sequelize.transaction((transaction) => {
return Promise.all([
queryInterface.removeColumn(table, 'Level2CareCertificateValue', { transaction }),
queryInterface.removeColumn(table, 'Level2CareCertificateYear', { transaction }),
queryInterface.removeColumn(table, 'Level2CareCertificateSavedAt', { transaction }),
queryInterface.removeColumn(table, 'Level2CareCertificateChangedAt', { transaction }),
queryInterface.removeColumn(table, 'Level2CareCertificateSavedBy', { transaction }),
queryInterface.removeColumn(table, 'Level2CareCertificateChangedBy', { transaction }),
]);
});
},
};
Loading

0 comments on commit 1ba3d46

Please sign in to comment.