mirror of
https://github.com/outline/outline.git
synced 2026-06-27 18:24:23 +03:00
957648a588
* feat: DCR first pass * Add cleanup task, management endpoints * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * wip * Combine migrations * Self review * fix: Guard OAuth policies * fix: Application access list not updating on deletion * feat: Add OAUTH_DISABLE_DCR env var to disable dynamic client registration Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: Validate max length of redirect URIs in DCR schemas Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Self review * Use withCtx methods for correct event creation * Remove incorrect scopes_supported --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
60 lines
1.4 KiB
JavaScript
60 lines
1.4 KiB
JavaScript
"use strict";
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.sequelize.transaction(async (transaction) => {
|
|
await queryInterface.changeColumn(
|
|
"oauth_clients",
|
|
"createdById",
|
|
{
|
|
type: Sequelize.UUID,
|
|
allowNull: true,
|
|
},
|
|
{ transaction }
|
|
);
|
|
await queryInterface.addColumn(
|
|
"oauth_clients",
|
|
"lastActiveAt",
|
|
{
|
|
type: Sequelize.DATE,
|
|
allowNull: true,
|
|
},
|
|
{ transaction }
|
|
);
|
|
await queryInterface.addColumn(
|
|
"oauth_clients",
|
|
"registrationAccessTokenHash",
|
|
{
|
|
type: Sequelize.STRING,
|
|
allowNull: true,
|
|
unique: true,
|
|
},
|
|
{ transaction }
|
|
);
|
|
});
|
|
},
|
|
|
|
async down(queryInterface, Sequelize) {
|
|
await queryInterface.sequelize.transaction(async (transaction) => {
|
|
await queryInterface.removeColumn(
|
|
"oauth_clients",
|
|
"registrationAccessTokenHash",
|
|
{ transaction }
|
|
);
|
|
await queryInterface.removeColumn("oauth_clients", "lastActiveAt", {
|
|
transaction,
|
|
});
|
|
await queryInterface.changeColumn(
|
|
"oauth_clients",
|
|
"createdById",
|
|
{
|
|
type: Sequelize.UUID,
|
|
allowNull: false,
|
|
},
|
|
{ transaction }
|
|
);
|
|
});
|
|
},
|
|
};
|