Skip to content

Commit

Permalink
migration for defintion to text from string
Browse files Browse the repository at this point in the history
  • Loading branch information
obmagnusson committed Oct 23, 2024
1 parent 4402e3b commit fae70ae
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
})
},
}

0 comments on commit fae70ae

Please sign in to comment.