Skip to content

Commit de3b4d3

Browse files
committed
fix: migration JC status
1 parent 9b17328 commit de3b4d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

migrations/2021-04-27-172422-job-candidate-selected-status-migration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ const config = require('config')
88
module.exports = {
99
up: async (queryInterface, Sequelize) => {
1010
const tableName = `${config.DB_SCHEMA_NAME}.job_candidates`
11-
await queryInterface.sequelize.query(`UPDATE ${tableName} SET status = 'selected' WHERE status = 'shortlist'`)
11+
await queryInterface.sequelize.query(`UPDATE ${tableName} SET status = 'interview' WHERE status = 'shortlist'`)
1212
},
1313

1414
down: async (queryInterface, Sequelize) => {
1515
const tableName = `${config.DB_SCHEMA_NAME}.job_candidates`
16-
await queryInterface.sequelize.query(`UPDATE ${tableName} SET status = 'shortlist' WHERE status = 'selected'`)
16+
await queryInterface.sequelize.query(`UPDATE ${tableName} SET status = 'shortlist' WHERE status = 'interview'`)
1717
}
1818
};

0 commit comments

Comments
 (0)