mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 10:45:20 -04:00
Add db migrations for PR #121
This commit is contained in:
parent
93c6205aa6
commit
baa946968d
5 changed files with 31 additions and 0 deletions
15
lib/migrations/20160515114000-user-add-tokens.js
Normal file
15
lib/migrations/20160515114000-user-add-tokens.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
up: function (queryInterface, Sequelize) {
|
||||
queryInterface.addColumn('Users', 'accessToken', Sequelize.STRING);
|
||||
queryInterface.addColumn('Users', 'refreshToken', Sequelize.STRING);
|
||||
return;
|
||||
},
|
||||
|
||||
down: function (queryInterface, Sequelize) {
|
||||
queryInterface.removeColumn('Users', 'accessToken');
|
||||
queryInterface.removeColumn('Users', 'refreshToken');
|
||||
return;
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue