mirror of
https://github.com/outline/outline.git
synced 2026-06-30 19:47:28 +03:00
a57d90fdf1
* Add collaboratorIds support to revision events - Add database migration to add collaboratorIds column to revisions table - Update server Revision model to include collaboratorIds field - Update client Revision model to include collaboratorIds field - Modify Revision.buildFromDocument to capture document collaborators - Update revisionCreator to include collaboratorIds in event data Fixes #6975 * fix to actually work * test: Add missing methods to mock * Return collaborators to client and display --------- Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com>
18 lines
422 B
JavaScript
18 lines
422 B
JavaScript
'use strict';
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up (queryInterface, Sequelize) {
|
|
await queryInterface.addColumn("revisions", "collaboratorIds", {
|
|
type: Sequelize.ARRAY(Sequelize.UUID),
|
|
allowNull: false,
|
|
defaultValue: [],
|
|
});
|
|
},
|
|
|
|
async down (queryInterface, Sequelize) {
|
|
await queryInterface.removeColumn("revisions", "collaboratorIds");
|
|
}
|
|
};
|
|
|