diff --git a/server/migrations/20200126235309-oauth_local_client.js b/server/migrations/20200126235309-oauth_local_client.js new file mode 100644 index 00000000..0fe56b47 --- /dev/null +++ b/server/migrations/20200126235309-oauth_local_client.js @@ -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' }) + } +}