mirror of
https://github.com/outline/outline.git
synced 2026-06-29 19:24:25 +03:00
b6a8986235
* chore: Update UpdateDocumentsPopularityScoreTask to run 4 times per day * chore: Add index to popularityScore column
15 lines
333 B
JavaScript
15 lines
333 B
JavaScript
"use strict";
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up(queryInterface) {
|
|
await queryInterface.addIndex("documents", ["popularityScore"], {
|
|
concurrently: true,
|
|
});
|
|
},
|
|
|
|
async down(queryInterface) {
|
|
await queryInterface.removeIndex("documents", ["popularityScore"]);
|
|
},
|
|
};
|