mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
Move lib and test into src directory
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
241c418ea7
commit
fab2607e4d
98 changed files with 1 additions and 3 deletions
23
src/lib/migrations/20180326103000-use-text-in-tokens.js
Normal file
23
src/lib/migrations/20180326103000-use-text-in-tokens.js
Normal file
|
@ -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
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue