users: add api_token attribute, make editable in profile/account

This commit is contained in:
mntmn
2020-05-11 14:59:37 +02:00
committed by mntmn
parent 46769691d8
commit b93cc20371
4 changed files with 34 additions and 7 deletions

View File

@@ -0,0 +1,19 @@
'use strict';
module.exports = {
up: function(migration, DataTypes) {
return Promise.all([
migration.addColumn('users', 'api_token',
{
type: DataTypes.STRING
}
)
])
},
down: function(migration, DataTypes) {
return Promise.all([
migration.removeColumn('users', 'api_token')
])
}
}