mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-15 17:37:30 +01:00
24 lines
414 B
JavaScript
24 lines
414 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
up: function(migration, DataTypes) {
|
|
return Promise.all([
|
|
migration.changeColumn('users', 'api_token',
|
|
{
|
|
type: DataTypes.STRING
|
|
}
|
|
)
|
|
])
|
|
},
|
|
|
|
down: function(migration, DataTypes) {
|
|
return Promise.all([
|
|
migration.changeColumn('users', 'api_token',
|
|
{
|
|
type: Sequelize.STRING
|
|
}
|
|
)
|
|
])
|
|
}
|
|
}
|