Add answer column to SearchQuery model
This commit is contained in:
13
server/migrations/20231212011038-search-query-answer.js
Normal file
13
server/migrations/20231212011038-search-query-answer.js
Normal 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");
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user