mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-30 19:51:12 -05:00
7b9f9a487b
Signed-off-by: David Mehren <git@herrmehren.de>
23 lines
615 B
JavaScript
23 lines
615 B
JavaScript
'use strict'
|
|
|
|
module.exports = {
|
|
up: async function (queryInterface, Sequelize) {
|
|
return queryInterface.changeColumn('Users', 'accessToken', {
|
|
type: Sequelize.TEXT
|
|
}).then(function () {
|
|
return queryInterface.changeColumn('Users', 'refreshToken', {
|
|
type: Sequelize.TEXT
|
|
})
|
|
})
|
|
},
|
|
|
|
down: async function (queryInterface, Sequelize) {
|
|
return queryInterface.changeColumn('Users', 'accessToken', {
|
|
type: Sequelize.STRING
|
|
}).then(function () {
|
|
return queryInterface.changeColumn('Users', 'refreshToken', {
|
|
type: Sequelize.STRING
|
|
})
|
|
})
|
|
}
|
|
}
|