mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
24 lines
782 B
JavaScript
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');
|
|
},
|
|
};
|