move email to different column on unsubscribe action

This commit is contained in:
Bilal Catic
2019-11-05 14:19:56 +01:00
parent 91cda0ff0f
commit c87a1fc8a8
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
"use strict";
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn("SearchRequests", "deletedEmail", {
type: Sequelize.TEXT
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.removeColumn("SearchRequests", "deletedEmail");
}
};