'use strict';

module.exports = {
  async up(queryInterface, Sequelize) {
    // Update PAN column from STRING(10) to STRING(16)
    await queryInterface.changeColumn('business_partner', 'pan', {
      type: Sequelize.STRING(16),
      allowNull: true
    });
  },

  async down(queryInterface, Sequelize) {
    // Revert PAN column back to STRING(10)
    await queryInterface.changeColumn('business_partner', 'pan', {
      type: Sequelize.STRING(10),
      allowNull: true
    });
  }
};
