Add score column to search_queries (#6253)
* Add score column to search_queries * Allow user to record search score
This commit is contained in:
13
server/migrations/20231206041706-search-query-score.js
Normal file
13
server/migrations/20231206041706-search-query-score.js
Normal 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");
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user