Files
outline/server/migrations/20231206041706-search-query-score.js
Tom Moor cf64da1050 Add score column to search_queries (#6253)
* Add score column to search_queries

* Allow user to record search score
2023-12-06 05:37:46 -08:00

14 lines
310 B
JavaScript

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