Files
starr-philproperties/database/migrations/20260713000001-restore-requires-review-column.js
T
kennethobsequio c8dc2628a6 try to deploy
Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
2026-07-13 21:27:37 +08:00

24 lines
782 B
JavaScript

'use strict';
// task_requirements.requires_review went missing from the live schema even
// though 20260709000001 is recorded as applied in SequelizeMeta (it was
// dropped out-of-band, outside the migration system). This restores it
// idempotently without re-touching `prompt`, which is still present.
module.exports = {
async up(queryInterface, Sequelize) {
const table = await queryInterface.describeTable('task_requirements');
if (!table.requires_review) {
await queryInterface.addColumn('task_requirements', 'requires_review', {
type: Sequelize.BOOLEAN,
allowNull: false,
defaultValue: false,
});
}
},
async down(queryInterface) {
await queryInterface.removeColumn('task_requirements', 'requires_review');
},
};