mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
35ff70bf14
Co-authored-by: Tom Moor <tom.moor@gmail.com>
19 lines
418 B
JavaScript
19 lines
418 B
JavaScript
"use strict";
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.addColumn("collections", "archivedById", {
|
|
type: Sequelize.UUID,
|
|
allowNull: true,
|
|
references: {
|
|
model: "users",
|
|
},
|
|
});
|
|
},
|
|
|
|
async down(queryInterface) {
|
|
await queryInterface.removeColumn("collections", "archivedById");
|
|
},
|
|
};
|