19 lines
554 B
JavaScript
19 lines
554 B
JavaScript
"use strict";
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
// Add 'on_hold' to the existing payoutStatus enum
|
|
await queryInterface.sequelize.query(`
|
|
ALTER TYPE "enum_Rentals_payoutStatus" ADD VALUE IF NOT EXISTS 'on_hold';
|
|
`);
|
|
},
|
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
// Note: PostgreSQL doesn't support removing enum values directly
|
|
// This would require recreating the enum type
|
|
console.log(
|
|
"Cannot remove enum value - manual intervention required if rollback needed"
|
|
);
|
|
},
|
|
};
|