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>
This commit is contained in:
Copilot
2025-12-12 20:04:41 -05:00
committed by GitHub
parent 948e557bdd
commit 682f9a1f88

View File

@@ -0,0 +1,14 @@
"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"]);
},
};