mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
c40ccd32f5
This adds the sourceMetadata column to the collections table to match the one on documents. The column is defined as JSONB and allows null values. Changes: - Added migration to create sourceMetadata column on collections table - Added sourceMetadata field to Collection model with SourceMetadata type - Imported SourceMetadata type in Collection model Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
15 lines
321 B
JavaScript
15 lines
321 B
JavaScript
"use strict";
|
|
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.addColumn("collections", "sourceMetadata", {
|
|
type: Sequelize.JSONB,
|
|
allowNull: true,
|
|
});
|
|
},
|
|
|
|
async down(queryInterface) {
|
|
await queryInterface.removeColumn("collections", "sourceMetadata");
|
|
},
|
|
};
|