"use strict"; module.exports = { up: async (queryInterface, Sequelize) => { // Add 'requires_action' to the paymentStatus enum // This status is used when 3DS authentication is required for a payment await queryInterface.sequelize.query(` ALTER TYPE "enum_Rentals_paymentStatus" ADD VALUE IF NOT EXISTS 'requires_action'; `); }, down: async (queryInterface, Sequelize) => { console.log( "Note: PostgreSQL does not support removing ENUM values. " + "'requires_action' will remain in the enum but will not be used.", ); }, };