diff --git a/apps/application-system/api/migrations/20241022145836-payment-alter-column-definition-text.js b/apps/application-system/api/migrations/20241022145836-payment-alter-column-definition-text.js new file mode 100644 index 000000000000..1eadfc953d8c --- /dev/null +++ b/apps/application-system/api/migrations/20241022145836-payment-alter-column-definition-text.js @@ -0,0 +1,17 @@ +'use strict' + +module.exports = { + up: async (queryInterface, Sequelize) => { + await queryInterface.changeColumn('payment', 'definition', { + type: Sequelize.TEXT, + allowNull: true, // Keep the same nullability as before + }) + }, + + down: async (queryInterface, Sequelize) => { + await queryInterface.changeColumn('payment', 'definition', { + type: Sequelize.STRING, + allowNull: true, // Revert to the original type and nullability + }) + }, +}