mirror of https://github.com/status-im/codimd.git
Use TEXT instead of STRING for tokens
Signed-off-by: Pedro Ferreira <pedro.ferreira@cern.ch>
This commit is contained in:
parent
40b3855702
commit
34df7ccce8
|
@ -0,0 +1,23 @@
|
|||
'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
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
|
@ -26,10 +26,10 @@ module.exports = function (sequelize, DataTypes) {
|
|||
type: DataTypes.TEXT
|
||||
},
|
||||
accessToken: {
|
||||
type: DataTypes.STRING
|
||||
type: DataTypes.TEXT
|
||||
},
|
||||
refreshToken: {
|
||||
type: DataTypes.STRING
|
||||
type: DataTypes.TEXT
|
||||
},
|
||||
email: {
|
||||
type: Sequelize.TEXT,
|
||||
|
|
Loading…
Reference in New Issue