self oauth2_client migration
This commit is contained in:
17
server/migrations/20200126235309-oauth_local_client.js
Normal file
17
server/migrations/20200126235309-oauth_local_client.js
Normal 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' })
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user