Files
outline/server/migrations/20251213004745-add-search-queries-source-index.js
Copilot 682f9a1f88 Add index on source column for search_queries table (#10876)
* 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>
2025-12-12 20:04:41 -05:00

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"]);
},
};