Files
outline/server/migrations/20251203124235-add-client-type-to-oauth-clients.js
T
Tom Moor 94252672f8 feat: Allow PKCE clients to refresh tokens (#10769)
* Add clientType concept

* Add clientType mutations

* tsc

* i18n

* fix: Invalid input handling

* tsc
2025-12-03 18:09:43 -05:00

17 lines
415 B
JavaScript

"use strict";
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn("oauth_clients", "clientType", {
type: Sequelize.STRING,
allowNull: false,
defaultValue: "confidential",
});
},
async down(queryInterface, Sequelize) {
await queryInterface.removeColumn("oauth_clients", "clientType");
},
};