mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
682f9a1f88
* Initial plan * Add migration to create index on source column for search_queries table Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>
15 lines
325 B
JavaScript
15 lines
325 B
JavaScript
"use strict";
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up(queryInterface) {
|
|
await queryInterface.addIndex("search_queries", ["source"], {
|
|
concurrently: true,
|
|
});
|
|
},
|
|
|
|
async down(queryInterface) {
|
|
await queryInterface.removeIndex("search_queries", ["source"]);
|
|
},
|
|
};
|