handling stripe disputes/chargeback where renter disputes the charge through their credit card company or bank
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
"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"
|
||||
);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user