mirror of
https://github.com/status-im/codimd.git
synced 2025-01-27 08:04:56 +00:00
147c20064f
Signed-off-by: Raccoon <raccoon@hackmd.io>
22 lines
581 B
TypeScript
22 lines
581 B
TypeScript
export = {
|
|
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
|
|
})
|
|
})
|
|
}
|
|
}
|