Add score column to search_queries (#6253)

* Add score column to search_queries

* Allow user to record search score
This commit is contained in:
Tom Moor
2023-12-06 08:37:46 -05:00
committed by GitHub
parent f494e28ce9
commit cf64da1050
6 changed files with 119 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
"use strict";
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn("search_queries", "score", {
type: Sequelize.INTEGER,
allowNull: true,
});
},
async down(queryInterface) {
await queryInterface.removeColumn("search_queries", "score");
},
};