mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
self oauth2_client migration
This commit is contained in:
parent
b706333c85
commit
8c0c5d08fd
1 changed files with 17 additions and 0 deletions
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' })
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue