self oauth2_client migration

This commit is contained in:
les 2020-01-27 01:02:06 +01:00
parent b706333c85
commit 8c0c5d08fd

View file

@ -0,0 +1,17 @@
'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' })
}
}