Skip to content

Commit

Permalink
Create lib/migrations/20241229134140-user-history-type
Browse files Browse the repository at this point in the history
  • Loading branch information
pasmophobia authored Dec 29, 2024
1 parent 6d38a3b commit d9a58e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/migrations/20241229134140-user-history-type
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict'

module.exports = {
up: async function (queryInterface, Sequelize) {
await queryInterface.changeColumn('Users', 'history', { type: Sequelize.TEXT('long') })
},

down: async function (queryInterface, Sequelize) {
await queryInterface.changeColumn('Users', 'history', { type: Sequelize.TEXT })
}
}

0 comments on commit d9a58e6

Please sign in to comment.