mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-23 20:21:17 +00:00
34df7ccce8
Signed-off-by: Pedro Ferreira <pedro.ferreira@cern.ch>
23 lines
603 B
JavaScript
23 lines
603 B
JavaScript
'use strict'
|
|
|
|
module.exports = {
|
|
up: function (queryInterface, Sequelize) {
|
|
return queryInterface.changeColumn('Users', 'accessToken', {
|
|
type: Sequelize.TEXT
|
|
}).then(function () {
|
|
return queryInterface.changeColumn('Users', 'refreshToken', {
|
|
type: Sequelize.TEXT
|
|
})
|
|
})
|
|
},
|
|
|
|
down: function (queryInterface, Sequelize) {
|
|
return queryInterface.changeColumn('Users', 'accessToken', {
|
|
type: Sequelize.STRING
|
|
}).then(function () {
|
|
return queryInterface.changeColumn('Users', 'refreshToken', {
|
|
type: Sequelize.STRING
|
|
})
|
|
})
|
|
}
|
|
}
|