mirror of
https://github.com/outline/outline.git
synced 2025-12-17 16:54:31 -06:00
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:
@@ -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"]);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user