Compare crawler results with db, and only save new if necessary

This commit is contained in:
Nedim Uka
2019-06-21 16:48:19 +02:00
parent 80ff9bcb6b
commit 2f474619ca
4 changed files with 86 additions and 203 deletions

View File

@@ -0,0 +1,20 @@
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn(
'MarketAlerts',
'realEstateType',
{
type: Sequelize.STRING
}
);
},
down: (queryInterface, Sequelize) => {
return queryInterface.removeColumn(
'MarketAlerts',
'realEstateType'
);
}
};