gancio-upstream/server/migrations/20200126235309-oauth_local_client.js
2020-01-27 01:02:06 +01:00

17 lines
376 B
JavaScript

'use strict'
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.bulkInsert('oauth_clients', [{
id: 'self',
name: 'self',
scopes: 'all',
createdAt: new Date(),
updatedAt: new Date()
}])
},
down: (queryInterface, Sequelize) => {
return queryInterface.bulkDelete('oauth_clients', { id: 'self' })
}
}