Add answer column to SearchQuery model

This commit is contained in:
Tom Moor
2023-12-11 20:15:33 -05:00
parent f9fb57abf4
commit 43e538dba7
3 changed files with 20 additions and 0 deletions

View File

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