mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
perform test
test to courses Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
async up(queryInterface, Sequelize) {
|
||||
const table = await queryInterface.describeTable('assessment_sessions');
|
||||
if (!table.draft_answers)
|
||||
await queryInterface.addColumn('assessment_sessions', 'draft_answers', {
|
||||
type: Sequelize.JSONB, allowNull: true, defaultValue: null,
|
||||
});
|
||||
if (!table.last_heartbeat_at)
|
||||
await queryInterface.addColumn('assessment_sessions', 'last_heartbeat_at', {
|
||||
type: Sequelize.DATE, allowNull: true, defaultValue: null,
|
||||
});
|
||||
},
|
||||
|
||||
async down(queryInterface) {
|
||||
await queryInterface.removeColumn('assessment_sessions', 'last_heartbeat_at');
|
||||
await queryInterface.removeColumn('assessment_sessions', 'draft_answers');
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user