2017-07-10 14:09:59 -04:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
module.exports = {
|
2020-06-02 07:48:38 -04:00
|
|
|
up: async function (queryInterface, Sequelize) {
|
2017-07-10 14:09:59 -04:00
|
|
|
return queryInterface.changeColumn('Users', 'accessToken', {
|
|
|
|
type: Sequelize.TEXT
|
|
|
|
}).then(function () {
|
|
|
|
return queryInterface.changeColumn('Users', 'refreshToken', {
|
|
|
|
type: Sequelize.TEXT
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
2020-06-02 07:48:38 -04:00
|
|
|
down: async function (queryInterface, Sequelize) {
|
2017-07-10 14:09:59 -04:00
|
|
|
return queryInterface.changeColumn('Users', 'accessToken', {
|
|
|
|
type: Sequelize.STRING
|
|
|
|
}).then(function () {
|
|
|
|
return queryInterface.changeColumn('Users', 'refreshToken', {
|
|
|
|
type: Sequelize.STRING
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|