Skip to content

Commit

Permalink
Merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanc19 committed Sep 18, 2024
2 parents f9b9ff9 + c996b3a commit b6554d3
Show file tree
Hide file tree
Showing 78 changed files with 12,152 additions and 32,242 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 b6554d3

Please sign in to comment.