mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
b51692cdc5
* Simple first pass * Use findAllInBatches * Add comments,views,revisions * Add 'popular' tab to Home * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Add 'Popular' tab to collections * Boost search results based on popularityScore * Move to unlogged temp table --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
17 lines
403 B
JavaScript
17 lines
403 B
JavaScript
"use strict";
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.addColumn("documents", "popularityScore", {
|
|
type: Sequelize.FLOAT,
|
|
allowNull: false,
|
|
defaultValue: 0,
|
|
});
|
|
},
|
|
|
|
async down(queryInterface, Sequelize) {
|
|
await queryInterface.removeColumn("documents", "popularityScore");
|
|
},
|
|
};
|