Skip to content

Commit

Permalink
Added migration to add columns to job statuses table
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineludeau committed Aug 22, 2023
1 parent 3fff500 commit fd54422
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use strict'

module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn('JobStatuses', 'dataType', {
type: Sequelize.STRING,
allowNull: true,
})

await queryInterface.addColumn('JobStatuses', 'jobType', {
type: Sequelize.STRING,
allowNull: true,
})
},

async down(queryInterface) {
await queryInterface.removeColumn('JobStatuses', 'dataType')
await queryInterface.removeColumn('JobStatuses', 'jobType')
},
}

0 comments on commit fd54422

Please sign in to comment.