mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-15 17:37:30 +01:00
users: add api_token attribute, make editable in profile/account
This commit is contained in:
19
models/migrations/02-users-add-api-token.js
Normal file
19
models/migrations/02-users-add-api-token.js
Normal 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')
|
||||
])
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user